From ccc44e9b431f622cf860d09ad1432d3d72b586fd Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 25 Jun 2018 04:07:05 +0300 Subject: [PATCH] Add BinlogEventsProcessor debug. GitOrigin-RevId: 8e452812c016071185624ba2784c34b0fe26f0c2 --- tddb/td/db/binlog/detail/BinlogEventsProcessor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tddb/td/db/binlog/detail/BinlogEventsProcessor.cpp b/tddb/td/db/binlog/detail/BinlogEventsProcessor.cpp index ad2820de..c4263959 100644 --- a/tddb/td/db/binlog/detail/BinlogEventsProcessor.cpp +++ b/tddb/td/db/binlog/detail/BinlogEventsProcessor.cpp @@ -36,7 +36,9 @@ void BinlogEventsProcessor::do_event(BinlogEvent &&event) { } else if (event.type_ < 0) { // just skip service events } else { - CHECK(ids_.empty() || ids_.back() < fixed_id); + CHECK(ids_.empty() || ids_.back() < fixed_id) + << offset_ << " " << ids_.size() << " " << ids_.back() << " " << fixed_id << " " << event.id_ << " " + << total_events_ << " " << total_raw_events_size_; last_id_ = event.id_; total_raw_events_size_ += static_cast(event.raw_event_.size()); total_events_++;