summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shard_metadata_util.h
diff options
context:
space:
mode:
authorJamie Heppenstall <jamie.heppenstall@mongodb.com>2019-07-23 15:40:39 -0400
committerJamie Heppenstall <jamie.heppenstall@mongodb.com>2019-08-01 11:09:29 -0400
commit5cbe01663884b321c45145c29bb9d9668125392e (patch)
treec9fd3bda635b7521578be83d263f536f50651bd0 /src/mongo/db/s/shard_metadata_util.h
parentb33f7ebe86ed14eb330eaacf9b367ffc2aefb7a3 (diff)
downloadmongo-5cbe01663884b321c45145c29bb9d9668125392e.tar.gz
SERVER-42152 Delete existing chunks on new epoch in persisted routing table cache
Diffstat (limited to 'src/mongo/db/s/shard_metadata_util.h')
-rw-r--r--src/mongo/db/s/shard_metadata_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/s/shard_metadata_util.h b/src/mongo/db/s/shard_metadata_util.h
index 7a5d8be6824..31ca31f37cd 100644
--- a/src/mongo/db/s/shard_metadata_util.h
+++ b/src/mongo/db/s/shard_metadata_util.h
@@ -211,6 +211,11 @@ Status updateShardChunks(OperationContext* opCtx,
Status dropChunksAndDeleteCollectionsEntry(OperationContext* opCtx, const NamespaceString& nss);
/**
+ * Drops locally persisted chunk metadata associated with 'nss': only drops the chunks collection.
+ */
+void dropChunks(OperationContext* opCtx, const NamespaceString& nss);
+
+/**
* Deletes locally persisted database metadata associated with 'dbName': removes the databases
* collection entry.
*/