aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/secret.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-02-02 21:13:52 +0300
committerlevlam <levlam@telegram.org>2023-02-02 21:13:52 +0300
commit4cb164f444cc7f6ac3a88c6cfde58a037d351a45 (patch)
tree54ac799fc1bb5cecec8c8308859d390af3e73329 /test/secret.cpp
parent3179d35694a28267a0b6273fc9b5bdce3b6b1235 (diff)
Initialize all BinlogEvent fields.
Diffstat (limited to 'test/secret.cpp')
-rw-r--r--test/secret.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/secret.cpp b/test/secret.cpp
index 587a2d314..253657f37 100644
--- a/test/secret.cpp
+++ b/test/secret.cpp
@@ -405,7 +405,7 @@ class FakeBinlog final
cancel_timeout();
for (auto &pending : pending_events_) {
auto &event = pending.event;
- if (!event.empty()) {
+ if (!event.is_empty()) {
// LOG(ERROR) << "FORGET EVENT: " << event.id_ << " " << event;
}
}
@@ -439,7 +439,7 @@ class FakeBinlog final
for (size_t i = 0; i <= pos; i++) {
auto &pending = pending_events_[i];
auto event = std::move(pending.event);
- if (!event.empty()) {
+ if (!event.is_empty()) {
LOG(INFO) << "SAVE EVENT: " << event.id_ << " " << event;
events_processor_.add_event(std::move(event)).ensure();
}