summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/auth_op_observer.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2021-10-17 17:49:33 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-19 10:14:46 +0000
commit9679e8ab24b6d990ad9379ca15ed95d26c6f1e5f (patch)
tree966e6386ea43c5da4446437a6d37634c9b78a554 /src/mongo/db/auth/auth_op_observer.h
parent3ea8c504b8e7ecfab552858d610a239e00004b1e (diff)
downloadmongo-9679e8ab24b6d990ad9379ca15ed95d26c6f1e5f.tar.gz
SERVER-31540 Get rid of boost::optional<UUID> from the OpObservers (Part 2)
Diffstat (limited to 'src/mongo/db/auth/auth_op_observer.h')
-rw-r--r--src/mongo/db/auth/auth_op_observer.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/auth/auth_op_observer.h b/src/mongo/db/auth/auth_op_observer.h
index 970811d934d..5097ff7cbb3 100644
--- a/src/mongo/db/auth/auth_op_observer.h
+++ b/src/mongo/db/auth/auth_op_observer.h
@@ -98,7 +98,7 @@ public:
void onInternalOpMessage(OperationContext* opCtx,
const NamespaceString& nss,
- const boost::optional<UUID> uuid,
+ OptionalCollectionUUID uuid,
const BSONObj& msgObj,
const boost::optional<BSONObj> o2MsgObj,
const boost::optional<repl::OpTime> preImageOpTime,
@@ -125,13 +125,13 @@ public:
using OpObserver::onDropCollection;
repl::OpTime onDropCollection(OperationContext* opCtx,
const NamespaceString& collectionName,
- OptionalCollectionUUID uuid,
+ const UUID& uuid,
std::uint64_t numRecords,
CollectionDropType dropType) final;
void onDropIndex(OperationContext* opCtx,
const NamespaceString& nss,
- OptionalCollectionUUID uuid,
+ const UUID& uuid,
const std::string& indexName,
const BSONObj& indexInfo) final;
@@ -139,7 +139,7 @@ public:
void onRenameCollection(OperationContext* opCtx,
const NamespaceString& fromCollection,
const NamespaceString& toCollection,
- OptionalCollectionUUID uuid,
+ const UUID& uuid,
OptionalCollectionUUID dropTargetUUID,
std::uint64_t numRecords,
bool stayTemp) final;
@@ -157,7 +157,7 @@ public:
repl::OpTime preRenameCollection(OperationContext* opCtx,
const NamespaceString& fromCollection,
const NamespaceString& toCollection,
- OptionalCollectionUUID uuid,
+ const UUID& uuid,
OptionalCollectionUUID dropTargetUUID,
std::uint64_t numRecords,
bool stayTemp) final {
@@ -166,7 +166,7 @@ public:
void postRenameCollection(OperationContext* opCtx,
const NamespaceString& fromCollection,
const NamespaceString& toCollection,
- OptionalCollectionUUID uuid,
+ const UUID& uuid,
OptionalCollectionUUID dropTargetUUID,
bool stayTemp) final;
void onApplyOps(OperationContext* opCtx,
@@ -175,7 +175,7 @@ public:
void onEmptyCapped(OperationContext* opCtx,
const NamespaceString& collectionName,
- OptionalCollectionUUID uuid) final;
+ const UUID& uuid) final;
void onUnpreparedTransactionCommit(OperationContext* opCtx,
std::vector<repl::ReplOperation>* statements,