Update tx_id to 0
Reviewers: msantl Reviewed By: msantl Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1340
This commit is contained in:
parent
a36753cf27
commit
23fe66e828
@ -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),
|
||||
|
@ -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[]) {
|
||||
|
Loading…
Reference in New Issue
Block a user