diff options
author | unknown <tomas@poseidon.mysql.com> | 2007-03-08 01:39:45 +0700 |
---|---|---|
committer | unknown <tomas@poseidon.mysql.com> | 2007-03-08 01:39:45 +0700 |
commit | fc390db47b5f6ca36a4a8391696f1188d02b340a (patch) | |
tree | 05ab25763c50886b762fd213b20faf5076c30431 /sql/ha_ndbcluster_binlog.cc | |
parent | 9031937983c3cd598a1a39a00c5a60a6745d0ebd (diff) | |
download | mariadb-git-fc390db47b5f6ca36a4a8391696f1188d02b340a.tar.gz |
Bug #26783 replication status unknown after cluster or mysqld failure
- part one, extend apply_status table
Diffstat (limited to 'sql/ha_ndbcluster_binlog.cc')
-rw-r--r-- | sql/ha_ndbcluster_binlog.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc index 38b640d5f55..66cde581b63 100644 --- a/sql/ha_ndbcluster_binlog.cc +++ b/sql/ha_ndbcluster_binlog.cc @@ -756,6 +756,9 @@ static int ndbcluster_create_ndb_apply_status_table(THD *thd) NDB_REP_DB "." NDB_APPLY_TABLE " ( server_id INT UNSIGNED NOT NULL," " epoch BIGINT UNSIGNED NOT NULL, " + " log_name VARCHAR(255) BINARY NOT NULL, " + " start_pos BIGINT UNSIGNED NOT NULL, " + " end_pos BIGINT UNSIGNED NOT NULL, " " PRIMARY KEY USING HASH (server_id) ) ENGINE=NDB"); run_query(thd, buf, end, TRUE, TRUE); @@ -3800,6 +3803,9 @@ restart: bzero(table->record[0], table->s->null_bytes); table->field[0]->store((longlong)::server_id); table->field[1]->store((longlong)gci); + table->field[2]->store("", 0, &my_charset_bin); + table->field[3]->store((longlong)0); + table->field[4]->store((longlong)0); trans.write_row(::server_id, injector::transaction::table(table, TRUE), &table->s->all_set, table->s->fields, |