summaryrefslogtreecommitdiff
path: root/sql/slave.h
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2003-12-26 12:32:02 +0200
committerunknown <monty@mysql.com>2003-12-26 12:32:02 +0200
commit3f4d396dc33a68252f8db838d14192186f4ce342 (patch)
tree78482c64b64f7c0b2c63eaa6e676af2c43951f91 /sql/slave.h
parent738469384e9f61568aa194e82ddf4e3f2e3d3d37 (diff)
downloadmariadb-git-3f4d396dc33a68252f8db838d14192186f4ce342.tar.gz
Fixed bug in table level privilege GRANT handling. (Bug #2178)
Portability fixes mysql-test/r/rpl_until.result: Portability fix mysql-test/t/rpl_until.test: Portability fix sql/slave.cc: Write UNTIL position to logs (for debugging) sql/slave.h: Write UNTIL position to logs (for debugging) sql/sql_acl.cc: Fixed bug in table level privilege GRANT handling. (Bug #2178)
Diffstat (limited to 'sql/slave.h')
-rw-r--r--sql/slave.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/slave.h b/sql/slave.h
index e42b93a47ef..d92c44dd2ba 100644
--- a/sql/slave.h
+++ b/sql/slave.h
@@ -324,6 +324,11 @@ typedef struct st_relay_log_info
/* Check if UNTIL condition is satisfied. See slave.cc for more. */
bool is_until_satisfied();
+ inline ulonglong until_pos()
+ {
+ return ((until_condition == UNTIL_MASTER_POS) ? group_master_log_pos :
+ group_relay_log_pos);
+ }
} RELAY_LOG_INFO;