summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorunknown <nick@mysql.com>2002-10-22 15:17:17 -0600
committerunknown <nick@mysql.com>2002-10-22 15:17:17 -0600
commitd326428c41429ea501d4b9098ab3d6084733bb32 (patch)
tree599b4e1aaa80541b807a59a9d9a5538337e4d2f3 /sql/log.cc
parentd2e52820f6b8f4d345af2a5e5c6a5fa792171757 (diff)
downloadmariadb-git-d326428c41429ea501d4b9098ab3d6084733bb32.tar.gz
Added Rand_log_event
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 72e1b60f6b3..32c0f4417f1 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -1066,6 +1066,13 @@ bool MYSQL_LOG::write(Log_event* event_info)
if (e.write(file))
goto err;
}
+ if (thd && thd->rand_used)
+ {
+ Rand_log_event e(thd,thd->rand_saved_seed1,thd->rand_saved_seed2);
+ e.set_log_pos(this);
+ if (e.write(file))
+ goto err;
+ }
if (thd && thd->variables.convert_set)
{
char buf[1024] = "SET CHARACTER SET ";