#At file:///home/tomas/mysql_src/cge-6.3/
2671 Tomas Ulin 2008-08-19 [merge]
merge
modified:
sql/ha_ndbcluster_binlog.cc
=== modified file 'sql/ha_ndbcluster_binlog.cc'
--- a/sql/ha_ndbcluster_binlog.cc 2008-08-08 12:32:37 +0000
+++ b/sql/ha_ndbcluster_binlog.cc 2008-08-19 08:37:15 +0000
@@ -502,6 +502,11 @@ static int ndbcluster_reset_logs(THD *th
if (!ndb_binlog_running)
return 0;
+ /* only reset master should reset logs */
+ if (!((thd->lex->sql_command == SQLCOM_RESET) &&
+ (thd->lex->type & REFRESH_MASTER)))
+ return 0;
+
DBUG_ENTER("ndbcluster_reset_logs");
/*
| Thread |
|---|
| • bzr commit into mysql-5.1 branch (tomas.ulin:2671) | Tomas Ulin | 19 Aug |