summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shard_metadata_util.h
diff options
context:
space:
mode:
authorAntonio Fuschetto <antonio.fuschetto@mongodb.com>2021-09-27 11:01:52 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-27 11:25:49 +0000
commitb9bf8bc726148c6c755e8fc045ace6ba235faf2a (patch)
tree9083c821a14ffe3ba26e342ab7e8b0a5242e21d8 /src/mongo/db/s/shard_metadata_util.h
parent00efe90e6d9e7ab8b9a3067d2477b7d863195b3d (diff)
downloadmongo-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.h9
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.
*/