summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/cloner_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/cloner_utils.h')
-rw-r--r--src/mongo/db/repl/cloner_utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/cloner_utils.h b/src/mongo/db/repl/cloner_utils.h
index 9f37ac91648..b9acd75b2ee 100644
--- a/src/mongo/db/repl/cloner_utils.h
+++ b/src/mongo/db/repl/cloner_utils.h
@@ -33,6 +33,7 @@
#include "mongo/bson/bsonobj.h"
#include "mongo/bson/timestamp.h"
+#include "mongo/db/namespace_string.h"
namespace mongo {
namespace repl {
@@ -54,6 +55,11 @@ public:
* Assembles a majority read using the operationTime specified as the afterClusterTime.
*/
static BSONObj buildMajorityWaitRequest(Timestamp operationTime);
+
+ /**
+ * Checks if the collection belongs to the given tenant.
+ */
+ static bool isNamespaceForTenant(NamespaceString nss, StringData prefix);
};