aboutsummaryrefslogtreecommitdiffhomepage
path: root/tddb/td/db/TQueue.h
diff options
context:
space:
mode:
authorArseny Smirnov <arseny30@gmail.com>2023-02-10 15:14:14 +0100
committerArseny Smirnov <arseny30@gmail.com>2023-02-10 15:14:14 +0100
commitebe93d7e4faf52d5099b562c8a257235fa5b9fac (patch)
treefdaebfefd1f31566e71f7747fdf3885c8746dcd1 /tddb/td/db/TQueue.h
parent1c9efb4283e0055ee7eb4836fe61141fb3271918 (diff)
Binlog::erase_batch, TQueue:pop_batch
Diffstat (limited to 'tddb/td/db/TQueue.h')
-rw-r--r--tddb/td/db/TQueue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tddb/td/db/TQueue.h b/tddb/td/db/TQueue.h
index 694e82831..c47d7a725 100644
--- a/tddb/td/db/TQueue.h
+++ b/tddb/td/db/TQueue.h
@@ -83,6 +83,7 @@ class TQueue {
virtual uint64 push(QueueId queue_id, const RawEvent &event) = 0;
virtual void pop(uint64 log_event_id) = 0;
virtual void close(Promise<> promise) = 0;
+ virtual void pop_batch(std::vector<uint64> log_event_ids);
};
static unique_ptr<TQueue> create();
@@ -128,6 +129,7 @@ class TQueueBinlog final : public TQueue::StorageCallback {
public:
uint64 push(QueueId queue_id, const RawEvent &event) final;
void pop(uint64 log_event_id) final;
+ void pop_batch(std::vector<uint64> log_event_ids) final;
Status replay(const BinlogEvent &binlog_event, TQueue &q) const TD_WARN_UNUSED_RESULT;
void set_binlog(std::shared_ptr<BinlogT> binlog) {