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