summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/get_database_version_command.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2019-06-18 11:41:13 -0400
committerRandolph Tan <randolph@10gen.com>2019-06-27 14:08:59 -0400
commitd6834482ef9bbca8fd81e82483dedde965de9574 (patch)
treef0fb5fd88fbe0bc97054c0282e9f9aa6f802c5ec /src/mongo/db/s/get_database_version_command.cpp
parent18a03b671d2a7d71c4af4ae2d115134b90dc9e38 (diff)
downloadmongo-d6834482ef9bbca8fd81e82483dedde965de9574.tar.gz
SERVER-40258 Rename CSRLock::lock to CSRLock::lockShared
Diffstat (limited to 'src/mongo/db/s/get_database_version_command.cpp')
-rw-r--r--src/mongo/db/s/get_database_version_command.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/get_database_version_command.cpp b/src/mongo/db/s/get_database_version_command.cpp
index 71fc3e4b8ad..899c8c1e33f 100644
--- a/src/mongo/db/s/get_database_version_command.cpp
+++ b/src/mongo/db/s/get_database_version_command.cpp
@@ -80,7 +80,7 @@ public:
AutoGetDb autoDb(opCtx, _targetDb(), MODE_IS);
if (auto db = autoDb.getDb()) {
auto& dss = DatabaseShardingState::get(db);
- auto dssLock = DatabaseShardingState::DSSLock::lock(opCtx, &dss);
+ auto dssLock = DatabaseShardingState::DSSLock::lockShared(opCtx, &dss);
if (auto dbVersion = dss.getDbVersion(opCtx, dssLock)) {
versionObj = dbVersion->toBSON();