Remove unneded template parameter.
GitOrigin-RevId: 77428c1488b833d95d0ed792054a295a4c182e19
This commit is contained in:
parent
d8a11c7fa6
commit
a726450e0b
@ -11,18 +11,19 @@
|
|||||||
#include "td/db/binlog/BinlogEvent.h"
|
#include "td/db/binlog/BinlogEvent.h"
|
||||||
|
|
||||||
#include "td/utils/common.h"
|
#include "td/utils/common.h"
|
||||||
|
#include "td/utils/StorerBase.h"
|
||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
|
|
||||||
template <class BinlogT, class StorerT>
|
template <class BinlogT>
|
||||||
uint64 binlog_add(const BinlogT &binlog_ptr, int32 type, const StorerT &storer, Promise<> promise = Promise<>()) {
|
uint64 binlog_add(const BinlogT &binlog_ptr, int32 type, const Storer &storer, Promise<> promise = Promise<>()) {
|
||||||
auto logevent_id = binlog_ptr->next_id();
|
auto logevent_id = binlog_ptr->next_id();
|
||||||
binlog_ptr->add_raw_event(logevent_id, BinlogEvent::create_raw(logevent_id, type, 0, storer), std::move(promise));
|
binlog_ptr->add_raw_event(logevent_id, BinlogEvent::create_raw(logevent_id, type, 0, storer), std::move(promise));
|
||||||
return logevent_id;
|
return logevent_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class BinlogT, class StorerT>
|
template <class BinlogT>
|
||||||
uint64 binlog_rewrite(const BinlogT &binlog_ptr, uint64 logevent_id, int32 type, const StorerT &storer,
|
uint64 binlog_rewrite(const BinlogT &binlog_ptr, uint64 logevent_id, int32 type, const Storer &storer,
|
||||||
Promise<> promise = Promise<>()) {
|
Promise<> promise = Promise<>()) {
|
||||||
auto seq_no = binlog_ptr->next_id();
|
auto seq_no = binlog_ptr->next_id();
|
||||||
binlog_ptr->add_raw_event(seq_no, BinlogEvent::create_raw(logevent_id, type, BinlogEvent::Flags::Rewrite, storer),
|
binlog_ptr->add_raw_event(seq_no, BinlogEvent::create_raw(logevent_id, type, BinlogEvent::Flags::Rewrite, storer),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user