summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/config_server_op_observer.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-01-08 18:54:38 -0500
committerBenety Goh <benety@mongodb.com>2019-01-08 18:54:54 -0500
commitecf269ff6494930ae4dfa98f66c4cbd6335cede2 (patch)
treef4b8d60e6a09812b06c6d65ff7645d70efded954 /src/mongo/db/s/config_server_op_observer.h
parente2b8d928d796b4b6a6144bc4aa27db6fe95bfdd8 (diff)
downloadmongo-ecf269ff6494930ae4dfa98f66c4cbd6335cede2.tar.gz
SERVER-38800 OpObserver accepts numRecords for drop and rename operations
Diffstat (limited to 'src/mongo/db/s/config_server_op_observer.h')
-rw-r--r--src/mongo/db/s/config_server_op_observer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/s/config_server_op_observer.h b/src/mongo/db/s/config_server_op_observer.h
index 458d9627955..3b128534f3d 100644
--- a/src/mongo/db/s/config_server_op_observer.h
+++ b/src/mongo/db/s/config_server_op_observer.h
@@ -97,6 +97,7 @@ public:
repl::OpTime onDropCollection(OperationContext* opCtx,
const NamespaceString& collectionName,
OptionalCollectionUUID uuid,
+ std::uint64_t numRecords,
CollectionDropType dropType) override;
void onDropIndex(OperationContext* opCtx,
@@ -110,12 +111,14 @@ public:
const NamespaceString& toCollection,
OptionalCollectionUUID uuid,
OptionalCollectionUUID dropTargetUUID,
+ std::uint64_t numRecords,
bool stayTemp) override {}
repl::OpTime preRenameCollection(OperationContext* opCtx,
const NamespaceString& fromCollection,
const NamespaceString& toCollection,
OptionalCollectionUUID uuid,
OptionalCollectionUUID dropTargetUUID,
+ std::uint64_t numRecords,
bool stayTemp) override {
return repl::OpTime();
}