Remove binlog_erase_impl.
GitOrigin-RevId: bfe67456d0e839266897dd2e0e386c852076d57d
This commit is contained in:
parent
8a118ec305
commit
4c8571d7a1
@ -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 <class BinlogT>
|
||||
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user