summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-04-07 14:42:58 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-07 18:54:56 +0000
commit393f409d5abd039e1c94267553015557583ae0b6 (patch)
treed90231791e957500978b003eeeeb4b368c192cfe /src/mongo/db
parent65e6cd5142082eab94a561036a53abdf60139155 (diff)
downloadmongo-393f409d5abd039e1c94267553015557583ae0b6.tar.gz
SERVER-43826 fix coverity analysis defect 113598: hidden parameter
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/index_builds_coordinator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/index_builds_coordinator.cpp b/src/mongo/db/index_builds_coordinator.cpp
index c1a978cdf16..96b7c9c99dd 100644
--- a/src/mongo/db/index_builds_coordinator.cpp
+++ b/src/mongo/db/index_builds_coordinator.cpp
@@ -1347,7 +1347,7 @@ Status IndexBuildsCoordinator::_registerIndexBuild(
auto aborted = false;
{
// We have to lock the mutex in order to read the committed/aborted state.
- stdx::unique_lock<Latch> lk(existingIndexBuild->mutex);
+ stdx::unique_lock<Latch> lkExisting(existingIndexBuild->mutex);
ss << " index build state: " << existingIndexBuild->indexBuildState.toString();
if (auto ts = existingIndexBuild->indexBuildState.getTimestamp()) {
ss << ", timestamp: " << ts->toString();