Add BinlogEventsProcessor debug.

GitOrigin-RevId: 8e452812c016071185624ba2784c34b0fe26f0c2
This commit is contained in:
levlam 2018-06-25 04:07:05 +03:00
parent fed222e11a
commit ccc44e9b43

View File

@ -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<int64>(event.raw_event_.size());
total_events_++;