From c7277235d7a19c2266167c611576388fb8968468 Mon Sep 17 00:00:00 2001 From: jsteemann Date: Tue, 16 Aug 2016 14:18:27 +0200 Subject: [PATCH] use WRITE_LOCKER --- arangod/VocBase/collection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arangod/VocBase/collection.cpp b/arangod/VocBase/collection.cpp index 024472dfe9..ba2a4b060f 100644 --- a/arangod/VocBase/collection.cpp +++ b/arangod/VocBase/collection.cpp @@ -599,7 +599,7 @@ void TRI_collection_t::addIndexFile(std::string const& filename) { //////////////////////////////////////////////////////////////////////////////// int TRI_collection_t::removeIndexFile(TRI_idx_iid_t id) { - READ_LOCKER(readLocker, _filesLock); + WRITE_LOCKER(readLocker, _filesLock); for (auto it = _indexFiles.begin(); it != _indexFiles.end(); ++it) { if (GetNumericFilenamePart((*it).c_str()) == id) {