From a931a8352ae8a740c24c892615a4ef3db65a0ede Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 28 Jun 2018 21:57:45 +0300 Subject: [PATCH] Fix CE. GitOrigin-RevId: c7c6bb5230c772df11ca468932fed3dda77be0c1 --- test/db.cpp | 8 ++++---- test/secret.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/db.cpp b/test/db.cpp index e66b7632c..2da801879 100644 --- a/test/db.cpp +++ b/test/db.cpp @@ -61,14 +61,14 @@ TEST(DB, binlog_encryption) { { Binlog binlog; binlog.init(binlog_name.str(), [](const BinlogEvent &x) {}).ensure(); - binlog.add_raw_event(BinlogEvent::create_raw(binlog.next_id(), 1, 0, create_storer("AAAA"))); - binlog.add_raw_event(BinlogEvent::create_raw(binlog.next_id(), 1, 0, create_storer("BBBB"))); - binlog.add_raw_event(BinlogEvent::create_raw(binlog.next_id(), 1, 0, create_storer(long_data))); + binlog.add_raw_event(BinlogEvent::create_raw(binlog.next_id(), 1, 0, create_storer("AAAA")), BinlogDebugInfo{__FILE__, __LINE__}); + binlog.add_raw_event(BinlogEvent::create_raw(binlog.next_id(), 1, 0, create_storer("BBBB")), BinlogDebugInfo{__FILE__, __LINE__}); + binlog.add_raw_event(BinlogEvent::create_raw(binlog.next_id(), 1, 0, create_storer(long_data)), BinlogDebugInfo{__FILE__, __LINE__}); LOG(INFO) << "SET PASSWORD"; binlog.change_key(cucumber); binlog.change_key(hello); LOG(INFO) << "OK"; - binlog.add_raw_event(BinlogEvent::create_raw(binlog.next_id(), 1, 0, create_storer("CCCC"))); + binlog.add_raw_event(BinlogEvent::create_raw(binlog.next_id(), 1, 0, create_storer("CCCC")), BinlogDebugInfo{__FILE__, __LINE__}); binlog.close().ensure(); } diff --git a/test/secret.cpp b/test/secret.cpp index 362ff0f2b..75f4acb1b 100644 --- a/test/secret.cpp +++ b/test/secret.cpp @@ -427,7 +427,7 @@ class FakeBinlog void close_and_destroy_impl(Promise<> promise) override { } void add_raw_event_impl(uint64 id, BufferSlice &&raw_event, Promise<> promise, BinlogDebugInfo info) override { - auto event = BinlogEvent(std::move(raw_event)); + auto event = BinlogEvent(std::move(raw_event), info); LOG(INFO) << "ADD EVENT: " << event.id_ << " " << event; pending_events_.emplace_back(); pending_events_.back().event = std::move(event);