summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/collection_sharding_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/collection_sharding_state.h')
-rw-r--r--src/mongo/db/s/collection_sharding_state.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/s/collection_sharding_state.h b/src/mongo/db/s/collection_sharding_state.h
index 40ce2829e53..509893c8b33 100644
--- a/src/mongo/db/s/collection_sharding_state.h
+++ b/src/mongo/db/s/collection_sharding_state.h
@@ -130,6 +130,12 @@ public:
*/
void checkShardVersionOrThrow(OperationContext* txn);
+ /**
+ * Returns whether this collection is sharded. Valid only if mongoD is primary.
+ * TODO SERVER-24960: This method may return a false positive until SERVER-24960 is fixed.
+ */
+ bool collectionIsSharded();
+
// Replication subsystem hooks. If this collection is serving as a source for migration, these
// methods inform it of any changes to its contents.