1
0
Fork 0

use WRITE_LOCKER

This commit is contained in:
jsteemann 2016-08-16 14:18:27 +02:00
parent e0647acbe0
commit c7277235d7
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ void TRI_collection_t::addIndexFile(std::string const& filename) {
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
int TRI_collection_t::removeIndexFile(TRI_idx_iid_t id) { 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) { for (auto it = _indexFiles.begin(); it != _indexFiles.end(); ++it) {
if (GetNumericFilenamePart((*it).c_str()) == id) { if (GetNumericFilenamePart((*it).c_str()) == id) {