diff options
author | Antonio Fuschetto <antonio.fuschetto@mongodb.com> | 2021-09-27 11:01:52 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-27 11:25:49 +0000 |
commit | b9bf8bc726148c6c755e8fc045ace6ba235faf2a (patch) | |
tree | 9083c821a14ffe3ba26e342ab7e8b0a5242e21d8 /src/mongo/db/s/shard_metadata_util.h | |
parent | 00efe90e6d9e7ab8b9a3067d2477b7d863195b3d (diff) | |
download | mongo-b9bf8bc726148c6c755e8fc045ace6ba235faf2a.tar.gz |
SERVER-59904 The ShardServerCatalogCacheLoader ended up having two different chunks cache
Diffstat (limited to 'src/mongo/db/s/shard_metadata_util.h')
-rw-r--r-- | src/mongo/db/s/shard_metadata_util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/s/shard_metadata_util.h b/src/mongo/db/s/shard_metadata_util.h index ce4c0c0cd4d..6217cdef240 100644 --- a/src/mongo/db/s/shard_metadata_util.h +++ b/src/mongo/db/s/shard_metadata_util.h @@ -230,6 +230,15 @@ void updateTimestampOnShardCollections(OperationContext* opCtx, Status dropChunksAndDeleteCollectionsEntry(OperationContext* opCtx, const NamespaceString& nss); /** + * Drops locally persisted chunk metadata associated with 'nss' or 'uuid': only drops the chunks + * collection. + */ +void dropChunks(OperationContext* opCtx, + const NamespaceString& nss, + const UUID& uuid, + SupportingLongNameStatusEnum supportingLongName); + +/** * Deletes locally persisted database metadata associated with 'dbName': removes the databases * collection entry. */ |