Fix CE.
GitOrigin-RevId: c7c6bb5230c772df11ca468932fed3dda77be0c1
This commit is contained in:
parent
14f1850490
commit
a931a8352a
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user