diff options
Diffstat (limited to 'src/mongo/db/repl/oplog_batcher.h')
-rw-r--r-- | src/mongo/db/repl/oplog_batcher.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/repl/oplog_batcher.h b/src/mongo/db/repl/oplog_batcher.h index 1449af45ed8..21ce5010d80 100644 --- a/src/mongo/db/repl/oplog_batcher.h +++ b/src/mongo/db/repl/oplog_batcher.h @@ -130,9 +130,9 @@ public: size_t ops = 0; // If provided, the batch will not include any operations with timestamps after this point. - // This is intended for implementing slaveDelay, so it should be some number of seconds - // before now. - boost::optional<Date_t> slaveDelayLatestTimestamp = {}; + // This is intended for implementing secondaryDelaySecs, so it should be some number of + // seconds before now. + boost::optional<Date_t> secondaryDelaySecsLatestTimestamp = {}; // If non-null, the batch will include operations with timestamps either // before-and-including this point or after it, not both. @@ -167,7 +167,7 @@ public: * A batch may consist of: * at most "BatchLimits::ops" OplogEntries * at most "BatchLimits::bytes" worth of OplogEntries - * only OplogEntries from before the "BatchLimits::slaveDelayLatestTimestamp" point + * only OplogEntries from before the "BatchLimits::secondaryDelaySecsLatestTimestamp" point * a single command OplogEntry (excluding applyOps, which are grouped with CRUD ops) */ StatusWith<std::vector<OplogEntry>> getNextApplierBatch(OperationContext* opCtx, @@ -187,10 +187,10 @@ public: private: /** - * If slaveDelay is enabled, this function calculates the most recent timestamp of any oplog - * entries that can be be returned in a batch. + * If secondaryDelaySecs is enabled, this function calculates the most recent timestamp of any + * oplog entries that can be be returned in a batch. */ - boost::optional<Date_t> _calculateSlaveDelayLatestTimestamp(); + boost::optional<Date_t> _calculateSecondaryDelaySecsLatestTimestamp(); /** * Pops the operation at the front of the OplogBuffer. |