From 0f31e4ec5a635f91af7f505c9574b78225a4966b Mon Sep 17 00:00:00 2001 From: jsteemann Date: Fri, 26 Aug 2016 15:04:08 +0200 Subject: [PATCH] do not set errno on fatal error --- arangod/VocBase/datafile.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arangod/VocBase/datafile.cpp b/arangod/VocBase/datafile.cpp index 98d57c5d8b..a3ba10aa43 100644 --- a/arangod/VocBase/datafile.cpp +++ b/arangod/VocBase/datafile.cpp @@ -947,11 +947,10 @@ static TRI_datafile_t* OpenDatafile(std::string const& filename, bool ignoreErro if (!ok) { if (IsMarker28(ptr)) { + TRI_CLOSE(fd); LOG(ERR) << "datafile found from older version of ArangoDB. " << "Please dump data from that version with arangodump " << "and reload it into this ArangoDB instance with arangorestore"; - TRI_CLOSE(fd); - TRI_set_errno(TRI_ERROR_NOT_IMPLEMENTED); FATAL_ERROR_EXIT(); }