summaryrefslogtreecommitdiff
path: root/src/mongo/s/ns_targeter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/ns_targeter.h')
-rw-r--r--src/mongo/s/ns_targeter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/s/ns_targeter.h b/src/mongo/s/ns_targeter.h
index ddd2237de40..0e4bd5845dd 100644
--- a/src/mongo/s/ns_targeter.h
+++ b/src/mongo/s/ns_targeter.h
@@ -160,6 +160,11 @@ public:
* Returns !OK with message if could not refresh
*/
virtual Status refreshIfNeeded(OperationContext* opCtx, bool* wasChanged) = 0;
+
+ /**
+ * Returns the number of shards that own one or more chunks for the targeted collection.
+ */
+ virtual int getNShardsOwningChunks() const = 0;
};
} // namespace mongo