summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/resharding_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/resharding_util.h')
-rw-r--r--src/mongo/db/s/resharding_util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mongo/db/s/resharding_util.h b/src/mongo/db/s/resharding_util.h
index 517ef531b29..5c07884d0a9 100644
--- a/src/mongo/db/s/resharding_util.h
+++ b/src/mongo/db/s/resharding_util.h
@@ -38,6 +38,7 @@
#include "mongo/db/s/resharding/donor_oplog_id_gen.h"
#include "mongo/executor/task_executor.h"
#include "mongo/s/catalog/type_tags.h"
+#include "mongo/s/catalog_cache.h"
#include "mongo/s/resharded_chunk_gen.h"
#include "mongo/s/shard_id.h"
@@ -46,6 +47,17 @@ namespace mongo {
constexpr auto kReshardingOplogPrePostImageOps = "prePostImageOps"_sd;
/**
+ * Constructs the temporary resharding collection's namespace provided the original collection's
+ * namespace and chunk manager.
+ *
+ * <db>.system.resharding.<existing collection's UUID>
+ *
+ * Note: throws if the original collection does not have a UUID.
+ */
+NamespaceString constructTemporaryReshardingNss(const NamespaceString& originalNss,
+ const ChunkManager& cm);
+
+/**
* Sends _flushRoutingTableCacheUpdatesWithWriteConcern to a list of shards. Throws if one of the
* shards fails to refresh.
*/