From 3741c5b45a69ad28e50c9fcc98bdbdfea60a8d28 Mon Sep 17 00:00:00 2001 From: Dominik Gleich Date: Fri, 30 Mar 2018 10:05:12 +0200 Subject: [PATCH] Fix memgraph crashing on exit Summary: Snapshot scheduler object was released from unique ptr and not actually freed, which caused the snapshooter to access the tx_engine after it was destructed. Reviewers: mferencevic Reviewed By: mferencevic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1325 --- src/database/graph_db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/graph_db.cpp b/src/database/graph_db.cpp index f3ab463fe..de711596f 100644 --- a/src/database/graph_db.cpp +++ b/src/database/graph_db.cpp @@ -271,7 +271,7 @@ PublicBase::~PublicBase() { tx_engine().LocalForEachActiveTransaction( [](auto &t) { t.set_should_abort(); }); - snapshot_creator_.release(); + snapshot_creator_ = nullptr; if (impl_->config_.snapshot_on_exit) MakeSnapshot(); }