diff options
Diffstat (limited to 'src/mongo/db/repl/session_update_tracker.h')
-rw-r--r-- | src/mongo/db/repl/session_update_tracker.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/db/repl/session_update_tracker.h b/src/mongo/db/repl/session_update_tracker.h index de89d22bc1c..e4288324337 100644 --- a/src/mongo/db/repl/session_update_tracker.h +++ b/src/mongo/db/repl/session_update_tracker.h @@ -57,14 +57,6 @@ public: boost::optional<std::vector<OplogEntry>> updateOrFlush(const OplogEntry& entry); /** - * Analyzes the given oplog entry and determines which transactions stored so far needs to be - * converted to oplog writes. - * - * Note: should only be called when oplog entry's ns target config.transactions or config.$cmd. - */ - std::vector<OplogEntry> flush(const OplogEntry& entry); - - /** * Converts all stored transaction infos to oplog writes to config.transactions. * Can return an empty vector if there is nothing to flush. */ @@ -72,6 +64,14 @@ public: private: /** + * Analyzes the given oplog entry and determines which transactions stored so far needs to be + * converted to oplog writes. + * + * Note: should only be called when oplog entry's ns target config.transactions or config.$cmd. + */ + std::vector<OplogEntry> _flush(const OplogEntry& entry); + + /** * Converts stored transaction infos that has a matching transcation id with the given * query predicate. Can return an empty vector if there is nothing to flush. */ |