diff options
author | Benety Goh <benety@mongodb.com> | 2021-10-26 16:33:34 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-26 21:04:24 +0000 |
commit | e0f313dc2f7c4a9a752cda37b9ec21ee5c035aec (patch) | |
tree | 9841cf3c9c1eaa34f5c98f458b3f173b2161610e /src/mongo/db/catalog/coll_mod.h | |
parent | 2351697b1402222ea36082c3c675efbb91d75c87 (diff) | |
download | mongo-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.h | 11 |
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 |