summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2021-07-02 09:09:42 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-07-26 11:47:24 +0000
commit047d7c1648a46d7e5c465f9f464292d0208d854d (patch)
treef86313d3dbc1fb762a8dc262f9c2ccdc63dd1d7e /src
parenta3705542f583320a75ebf16b7fc54e28a8d834fd (diff)
downloadmongo-047d7c1648a46d7e5c465f9f464292d0208d854d.tar.gz
SERVER-58821 Remove the unused `getLocalVersion` function from shard_server_catalog_cache_loader.cpp
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/s/shard_server_catalog_cache_loader.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/db/s/shard_server_catalog_cache_loader.cpp b/src/mongo/db/s/shard_server_catalog_cache_loader.cpp
index a94d360bcf5..b05c1649562 100644
--- a/src/mongo/db/s/shard_server_catalog_cache_loader.cpp
+++ b/src/mongo/db/s/shard_server_catalog_cache_loader.cpp
@@ -390,18 +390,6 @@ void forcePrimaryDatabaseRefreshAndWaitForReplication(OperationContext* opCtx, S
}
/**
- * Reads the local chunk metadata to obtain the current ChunkVersion. If there is no local
- * metadata for the namespace, returns ChunkVersion::UNSHARDED(), since only metadata for sharded
- * collections is persisted.
- */
-ChunkVersion getLocalVersion(OperationContext* opCtx, const NamespaceString& nss) {
- auto swRefreshState = getPersistedRefreshFlags(opCtx, nss);
- if (swRefreshState == ErrorCodes::NamespaceNotFound)
- return ChunkVersion::UNSHARDED();
- return uassertStatusOK(std::move(swRefreshState)).lastRefreshedCollectionVersion;
-}
-
-/**
* if 'mustPatchUpMetadataResults' is true, it sets the current 'timestamp' to all 'changedChunks'.
* Does nothing otherwise.
*/