diff options
author | Kyle Suarez <kyle.suarez@mongodb.com> | 2018-03-28 08:33:57 -0400 |
---|---|---|
committer | Kyle Suarez <kyle.suarez@mongodb.com> | 2018-03-28 08:33:57 -0400 |
commit | fee5ac1166c2b4a0a11e00e58f2d9c12d4567e25 (patch) | |
tree | 572767fc617d098f832856a3a76f2a5bbc77c0c7 /src/mongo/db/op_observer.h | |
parent | 8060a008b5dce908553cec373bd6667c30b97fe0 (diff) | |
download | mongo-fee5ac1166c2b4a0a11e00e58f2d9c12d4567e25.tar.gz |
SERVER-21693 generate a summary after rollback via recover to timestamp
Diffstat (limited to 'src/mongo/db/op_observer.h')
-rw-r--r-- | src/mongo/db/op_observer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/op_observer.h b/src/mongo/db/op_observer.h index 915a8538ae4..f73b5eb85f2 100644 --- a/src/mongo/db/op_observer.h +++ b/src/mongo/db/op_observer.h @@ -257,6 +257,9 @@ public: * any external subsystems that need to be notified of a rollback occurring. */ struct RollbackObserverInfo { + // A count of all oplog entries seen during rollback (even no-op entries). + std::uint32_t numberOfEntriesObserved; + // Set of all namespaces from ops being rolled back. std::set<NamespaceString> rollbackNamespaces = {}; @@ -272,6 +275,9 @@ public: // True if the shard identity document was rolled back. bool shardIdentityRolledBack = false; + + // Maps command names to a count of the number of those commands that are being rolled back. + StringMap<std::uint32_t> rollbackCommandCounts; }; /** |