summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/coll_mod.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2021-10-26 16:33:34 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-26 21:04:24 +0000
commite0f313dc2f7c4a9a752cda37b9ec21ee5c035aec (patch)
tree9841cf3c9c1eaa34f5c98f458b3f173b2161610e /src/mongo/db/catalog/coll_mod.h
parent2351697b1402222ea36082c3c675efbb91d75c87 (diff)
downloadmongo-e0f313dc2f7c4a9a752cda37b9ec21ee5c035aec.tar.gz
SERVER-60931 pass CollMod details to coll_mod.cpp using IDL type
Diffstat (limited to 'src/mongo/db/catalog/coll_mod.h')
-rw-r--r--src/mongo/db/catalog/coll_mod.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mongo/db/catalog/coll_mod.h b/src/mongo/db/catalog/coll_mod.h
index a6b5236f355..17a5d90f2d8 100644
--- a/src/mongo/db/catalog/coll_mod.h
+++ b/src/mongo/db/catalog/coll_mod.h
@@ -30,6 +30,7 @@
#include "mongo/base/status.h"
#include "mongo/base/status_with.h"
#include "mongo/db/catalog/collection_options.h"
+#include "mongo/db/coll_mod_gen.h"
namespace mongo {
class BSONObj;
@@ -46,11 +47,11 @@ class OperationContext;
void addCollectionUUIDs(OperationContext* opCtx);
/**
- * Performs the collection modification described in "cmdObj" on the collection "ns".
+ * Performs the collection modification described in "cmd" on the collection "ns".
*/
-Status collMod(OperationContext* opCtx,
- const NamespaceString& ns,
- const BSONObj& cmdObj,
- BSONObjBuilder* result);
+Status processCollModCommand(OperationContext* opCtx,
+ const NamespaceStringOrUUID& nsOrUUID,
+ const CollMod& cmd,
+ BSONObjBuilder* result);
} // namespace mongo