8000 actually use swapDatabases variable · lethalbrains/arangodb@1233186 · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit 1233186

Browse files
author
Andreas Streichardt
committed
actually use swapDatabases variable
1 parent 0a14a56 commit 1233186

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arangod/Cluster/ClusterInfo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,9 @@ void ClusterInfo::loadCurrent() {
602602
{
603603
WRITE_LOCKER(writeLocker, _currentProt.lock);
604604
_current = currentBuilder;
605-
_currentDatabases.swap(newDatabases);
605+
if (swapDatabases) {
606+
_currentDatabases.swap(newDatabases);
607+
}
606608
_currentProt.version++; // such that others notice our change
607609
_currentProt.isValid = true; // will never be reset to false
608610
}

0 commit comments

Comments
 (0)
0