diff options
author | Benety Goh <benety@mongodb.com> | 2020-04-07 14:42:58 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-07 18:54:56 +0000 |
commit | 393f409d5abd039e1c94267553015557583ae0b6 (patch) | |
tree | d90231791e957500978b003eeeeb4b368c192cfe /src | |
parent | 65e6cd5142082eab94a561036a53abdf60139155 (diff) | |
download | mongo-393f409d5abd039e1c94267553015557583ae0b6.tar.gz |
SERVER-43826 fix coverity analysis defect 113598: hidden parameter
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/index_builds_coordinator.cpp | 2 |
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(); |