Update tx_id to 0

Reviewers: msantl

Reviewed By: msantl

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1340
This commit is contained in:
Dominik Gleich 2018-04-05 14:02:21 +02:00
parent a36753cf27
commit 23fe66e828
2 changed files with 3 additions and 3 deletions

View File

@ -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),

View File

@ -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[]) {