From 4c8571d7a1ed288ffb11bbe6e0982bfac5c0c10f Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 10 Jun 2020 21:24:29 +0300 Subject: [PATCH] Remove binlog_erase_impl. GitOrigin-RevId: bfe67456d0e839266897dd2e0e386c852076d57d --- tddb/td/db/binlog/BinlogHelper.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tddb/td/db/binlog/BinlogHelper.h b/tddb/td/db/binlog/BinlogHelper.h index 480afc2ae..7574efbfd 100644 --- a/tddb/td/db/binlog/BinlogHelper.h +++ b/tddb/td/db/binlog/BinlogHelper.h @@ -30,13 +30,10 @@ uint64 binlog_rewrite(const BinlogT &binlog_ptr, uint64 logevent_id, int32 type, return seq_no; } -#define binlog_erase(...) binlog_erase_impl({__FILE__, __LINE__}, __VA_ARGS__) - template -uint64 binlog_erase_impl(BinlogDebugInfo info, const BinlogT &binlog_ptr, uint64 logevent_id, - Promise<> promise = Promise<>()) { +uint64 binlog_erase(const BinlogT &binlog_ptr, uint64 logevent_id, Promise<> promise = Promise<>()) { auto seq_no = binlog_ptr->next_id(); - binlog_ptr->add_raw_event(info, seq_no, + binlog_ptr->add_raw_event(seq_no, BinlogEvent::create_raw(logevent_id, BinlogEvent::ServiceTypes::Empty, BinlogEvent::Flags::Rewrite, EmptyStorer()), std::move(promise));