r80824 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80823‎ | r80824 | r80825 >
Date:18:32, 23 January 2011
Author:river
Status:deferred
Tags:
Comment:
When the slave write thread exits, log the last binlog position
Modified paths:
  • /trunk/tools/trainwreck/trainwreck.c (modified) (history)

Diff [purge]

Index: trunk/tools/trainwreck/trainwreck.c
@@ -287,7 +287,9 @@
288288 }
289289 mysql_close(writer.wr_conn);
290290 writer.wr_status = ST_STOPPED;
291 - logmsg("slave threads stopped");
 291+ logmsg("slave threads stopped; last executed = %s,%lu",
 292+ writer.wr_last_executed_file,
 293+ (long unsigned int) writer.wr_last_executed_pos);
292294 }
293295
294296 static int

Status & tagging log