diff options
author | Reo Kimura <reo.kimura@mongodb.com> | 2021-09-10 19:15:37 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-28 20:29:14 +0000 |
commit | 6b72a45f1900d681205ec48b4435ac2438d32841 (patch) | |
tree | 4da9c432bb7107d23f36dcfee95452de9fb9a8e0 | |
parent | 2f4f893adbabdb182bc19e08e07d745de44748ea (diff) | |
download | mongo-6b72a45f1900d681205ec48b4435ac2438d32841.tar.gz |
SERVER-53242 Log line added to collMod command
(cherry picked from commit 73d70cbb30371d07aaef97c2d2e2f673de5b0e2d)
-rw-r--r-- | src/mongo/db/catalog/coll_mod.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/coll_mod.cpp b/src/mongo/db/catalog/coll_mod.cpp index 116ef528ea2..6105dee9c60 100644 --- a/src/mongo/db/catalog/coll_mod.cpp +++ b/src/mongo/db/catalog/coll_mod.cpp @@ -420,6 +420,10 @@ Status _collModInternal(OperationContext* opCtx, return Status(ErrorCodes::BadValue, "can't hide _id index"); } + if (!serverGlobalParams.quiet.load()) { + LOGV2(5324200, "CMD: collMod", "cmdObj"_attr = cmdObj); + } + return writeConflictRetry(opCtx, "collMod", nss.ns(), [&] { WriteUnitOfWork wunit(opCtx); |