mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-58821 Remove the unused getLocalVersion
function from shard_server_catalog_cache_loader.cpp
This commit is contained in:
parent
a3705542f5
commit
047d7c1648
@ -389,18 +389,6 @@ void forcePrimaryDatabaseRefreshAndWaitForReplication(OperationContext* opCtx, S
|
||||
opCtx, {LogicalTime::fromOperationTime(cmdResponse.response), boost::none}));
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
Loading…
Reference in New Issue
Block a user