From 23fe66e82863f7b41cc3ec4486df07c5a45f8be6 Mon Sep 17 00:00:00 2001 From: Dominik Gleich Date: Thu, 5 Apr 2018 14:02:21 +0200 Subject: [PATCH] Update tx_id to 0 Reviewers: msantl Reviewed By: msantl Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1340 --- tests/manual/snapshot_generation/snapshot_writer.hpp | 4 ++-- tools/src/mg_import_csv/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/manual/snapshot_generation/snapshot_writer.hpp b/tests/manual/snapshot_generation/snapshot_writer.hpp index 62a3ea6a8..d0ed2a213 100644 --- a/tests/manual/snapshot_generation/snapshot_writer.hpp +++ b/tests/manual/snapshot_generation/snapshot_writer.hpp @@ -119,10 +119,10 @@ void WriteToSnapshot(GraphState &state, const std::string &path) { LOG(ERROR) << "Unable to create durability directory!"; exit(0); } - // Pretend like this is coming from transaction numbered 1 - this is hack + // Pretend like this is coming from transaction numbered 0 - this is hack // TODO(dgleich): Change this to something more reasonable const auto snapshot_file = - durability::MakeSnapshotPath(durability_dir, worker_id, 1); + durability::MakeSnapshotPath(durability_dir, worker_id, 0); SnapshotWriter writer(snapshot_file, worker_id, state.NumNodesOnWorker(worker_id), diff --git a/tools/src/mg_import_csv/main.cpp b/tools/src/mg_import_csv/main.cpp index 47a7a3339..0fbcf8f8b 100644 --- a/tools/src/mg_import_csv/main.cpp +++ b/tools/src/mg_import_csv/main.cpp @@ -472,7 +472,7 @@ std::string GetOutputPath() { int worker_id = 0; // TODO(dgleich): Remove this transaction id hack return std::string( - durability::MakeSnapshotPath(durability_dir, worker_id, 1)); + durability::MakeSnapshotPath(durability_dir, worker_id, 0)); } int main(int argc, char *argv[]) {