From 8cee8b512584207fea301b10fa5bb4a6ac62eed5 Mon Sep 17 00:00:00 2001 From: vvaltman Date: Wed, 27 Aug 2014 02:02:19 +0400 Subject: [PATCH] debug output --- binlog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/binlog.c b/binlog.c index d8cd8b5..2f5a742 100644 --- a/binlog.c +++ b/binlog.c @@ -160,6 +160,9 @@ static int fetch_comb_binlog_set_date (void *extra) { static int fetch_comb_binlog_set_seq (void *extra) { int new_seq = fetch_int (); + if (new_seq < tgl_state.seq) { + vlogprintf (E_ERROR, "Error: old_seq = %d, new_seq = %d\n", tgl_state.seq, new_seq); + } assert (new_seq >= tgl_state.seq); tgl_state.seq = new_seq; return 0;