summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_applier.cpp
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2019-08-30 21:44:14 +0000
committerevergreen <evergreen@mongodb.com>2019-08-30 21:44:14 +0000
commitd046020279c3a1af2d9c05d40cdaef84610f611d (patch)
tree54f4b725f7912340f69c98815a7ef02599e59f03 /src/mongo/db/repl/oplog_applier.cpp
parent966f51fa210c9db0e4cfff18fe400c0b2433b263 (diff)
downloadmongo-d046020279c3a1af2d9c05d40cdaef84610f611d.tar.gz
SERVER-36570: make OplogEntryBase mutable but keep OplogEntry immutable
Also make OplogEntry.raw private (cherry picked from commit 25f11192a656ff72a2fe54e8b5e1373f84381953)
Diffstat (limited to 'src/mongo/db/repl/oplog_applier.cpp')
-rw-r--r--src/mongo/db/repl/oplog_applier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/oplog_applier.cpp b/src/mongo/db/repl/oplog_applier.cpp
index 6e97d38e348..2a1c71e9d77 100644
--- a/src/mongo/db/repl/oplog_applier.cpp
+++ b/src/mongo/db/repl/oplog_applier.cpp
@@ -124,7 +124,7 @@ void OplogApplier::enqueue(OperationContext* opCtx,
Operations::const_iterator end) {
OplogBuffer::Batch batch;
for (auto i = begin; i != end; ++i) {
- batch.push_back(i->raw);
+ batch.push_back(i->getRaw());
}
enqueue(opCtx, batch.cbegin(), batch.cend());
}