summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster_binlog.h
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2006-02-06 11:47:12 +0100
committerunknown <tomas@poseidon.ndb.mysql.com>2006-02-06 11:47:12 +0100
commitb7cbf0090f2b73cc65468ceda3550d2279cd0e3e (patch)
tree47e921136193b8b865a42ac9870f998a239a51c4 /sql/ha_ndbcluster_binlog.h
parent7de9b1c6b92acccb1cea4b6ff55d03f1c9256ba5 (diff)
downloadmariadb-git-b7cbf0090f2b73cc65468ceda3550d2279cd0e3e.tar.gz
Bug #17038, distribution of schema operation to multiple binlogs missing/multiple entries, partial fix
- log alter table directly in server instead of in handler - acknowledge alter table _after_ all binlog events have been processed
Diffstat (limited to 'sql/ha_ndbcluster_binlog.h')
-rw-r--r--sql/ha_ndbcluster_binlog.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/sql/ha_ndbcluster_binlog.h b/sql/ha_ndbcluster_binlog.h
index 4739c77a1bd..a297f80f6ab 100644
--- a/sql/ha_ndbcluster_binlog.h
+++ b/sql/ha_ndbcluster_binlog.h
@@ -29,18 +29,24 @@ extern ulong ndb_extra_logging;
#define INJECTOR_EVENT_LEN 200
+/*
+ The numbers below must not change as they
+ are passed between mysql servers, and if changed
+ would break compatablility. Add new numbers to
+ the end.
+*/
enum SCHEMA_OP_TYPE
{
- SOT_DROP_TABLE,
- SOT_CREATE_TABLE,
- SOT_RENAME_TABLE,
- SOT_ALTER_TABLE,
- SOT_DROP_DB,
- SOT_CREATE_DB,
- SOT_ALTER_DB,
- SOT_CLEAR_SLOCK,
- SOT_TABLESPACE,
- SOT_LOGFILE_GROUP
+ SOT_DROP_TABLE= 0,
+ SOT_CREATE_TABLE= 1,
+ SOT_RENAME_TABLE= 2,
+ SOT_ALTER_TABLE= 3,
+ SOT_DROP_DB= 4,
+ SOT_CREATE_DB= 5,
+ SOT_ALTER_DB= 6,
+ SOT_CLEAR_SLOCK= 7,
+ SOT_TABLESPACE= 8,
+ SOT_LOGFILE_GROUP= 9
};
const uint max_ndb_nodes= 64; /* multiple of 32 */