From 646b202bf94e02ba42de75d7afea47aa50716846 Mon Sep 17 00:00:00 2001 From: jsteemann Date: Fri, 29 Apr 2016 15:18:05 +0200 Subject: [PATCH] reset Instace variable later --- arangod/Wal/LogfileManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arangod/Wal/LogfileManager.cpp b/arangod/Wal/LogfileManager.cpp index bc2d2d074c..f5a48eeb5f 100644 --- a/arangod/Wal/LogfileManager.cpp +++ b/arangod/Wal/LogfileManager.cpp @@ -140,6 +140,8 @@ LogfileManager::~LogfileManager() { delete _slots; _slots = nullptr; } + + Instance = nullptr; } void LogfileManager::collectOptions(std::shared_ptr options) { @@ -528,8 +530,6 @@ void LogfileManager::stop() { if (res != TRI_ERROR_NO_ERROR) { LOG(ERR) << "could not write WAL shutdown info: " << TRI_errno_string(res); } - - Instance = nullptr; } // registers a transaction