#At file:///home/tomas/mysql_src/cge-6.2/
2650 Tomas Ulin 2008-08-19
continued fix for reset master
modified:
sql/ha_ndbcluster_binlog.cc
=== modified file 'sql/ha_ndbcluster_binlog.cc'
--- a/sql/ha_ndbcluster_binlog.cc 2008-08-08 09:14:45 +0000
+++ b/sql/ha_ndbcluster_binlog.cc 2008-08-19 06:30:59 +0000
@@ -500,6 +500,10 @@ static int ndbcluster_reset_logs(THD *th
if (!ndb_binlog_running)
return 0;
+ /* only reset master should reset logs */
+ if (!(thd->lex->type & REFRESH_MASTER))
+ return 0;
+
DBUG_ENTER("ndbcluster_reset_logs");
/*
| Thread |
|---|
| • bzr commit into mysql-5.1 branch (tomas.ulin:2650) | Tomas Ulin | 19 Aug |