summaryrefslogtreecommitdiff
path: root/sql/sql_repl.cc
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-08-18 16:04:26 +0300
committermonty@hundin.mysql.fi <>2002-08-18 16:04:26 +0300
commita5edb200421018ee967045903b2802c2d5c1bd75 (patch)
treeaf1548211472940ebe3bad8ee24a4d2ab26f2c92 /sql/sql_repl.cc
parentf7c8bd0e47b8a037f4eb0a7dca2816af97604d07 (diff)
downloadmariadb-git-a5edb200421018ee967045903b2802c2d5c1bd75.tar.gz
Fixed timing problem with rpl000001 replication test.
Fixed configure problems with HPUX and openbsd SHOW SLAVE STATUS returns empty set if slave is not initialized SHOW MASTER STATUS returns empty set if binary logging is not enabled. Fixed shutdown problem on Solaris.
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r--sql/sql_repl.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc
index 9cc596f9bb5..8975a05ac3a 100644
--- a/sql/sql_repl.cc
+++ b/sql/sql_repl.cc
@@ -1000,18 +1000,9 @@ int show_binlog_info(THD* thd)
net_store_data(packet, (longlong)li.pos);
net_store_data(packet, &binlog_do_db);
net_store_data(packet, &binlog_ignore_db);
+ if (my_net_write(&thd->net, (char*)thd->packet.ptr(), packet->length()))
+ DBUG_RETURN(-1);
}
- else
- {
- net_store_null(packet);
- net_store_null(packet);
- net_store_null(packet);
- net_store_null(packet);
- }
-
- if (my_net_write(&thd->net, (char*)thd->packet.ptr(), packet->length()))
- DBUG_RETURN(-1);
-
send_eof(&thd->net);
DBUG_RETURN(0);
}