Fix building keeper-data-dumper

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-07-28 19:19:37 +03:00
parent c5837dd6f5
commit 83dfbe3b9a

View File

@ -62,7 +62,8 @@ int main(int argc, char *argv[])
ResponsesQueue queue(std::numeric_limits<size_t>::max()); ResponsesQueue queue(std::numeric_limits<size_t>::max());
SnapshotsQueue snapshots_queue{1}; SnapshotsQueue snapshots_queue{1};
CoordinationSettingsPtr settings = std::make_shared<CoordinationSettings>(); CoordinationSettingsPtr settings = std::make_shared<CoordinationSettings>();
auto state_machine = std::make_shared<KeeperStateMachine>(queue, snapshots_queue, argv[1], settings); KeeperContextPtr keeper_context = std::make_shared<DB::KeeperContext>();
auto state_machine = std::make_shared<KeeperStateMachine>(queue, snapshots_queue, argv[1], settings, keeper_context);
state_machine->init(); state_machine->init();
size_t last_commited_index = state_machine->last_commit_index(); size_t last_commited_index = state_machine->last_commit_index();