summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/collection_impl.cpp')
-rw-r--r--src/mongo/db/catalog/collection_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/collection_impl.cpp b/src/mongo/db/catalog/collection_impl.cpp
index 27e5de9aacc..fa0f897d75f 100644
--- a/src/mongo/db/catalog/collection_impl.cpp
+++ b/src/mongo/db/catalog/collection_impl.cpp
@@ -524,7 +524,7 @@ Status CollectionImpl::_insertDocuments(OperationContext* opCtx,
for (auto it = begin; it != end; it++) {
records.emplace_back(Record{RecordId(), RecordData(it->doc.objdata(), it->doc.objsize())});
- timestamps.emplace_back(it->oplogSlot.opTime.getTimestamp());
+ timestamps.emplace_back(it->oplogSlot.getTimestamp());
}
Status status = _recordStore->insertRecords(opCtx, &records, timestamps);
if (!status.isOK())
@@ -538,7 +538,7 @@ Status CollectionImpl::_insertDocuments(OperationContext* opCtx,
invariant(RecordId::min() < loc);
invariant(loc < RecordId::max());
- BsonRecord bsonRecord = {loc, Timestamp(it->oplogSlot.opTime.getTimestamp()), &(it->doc)};
+ BsonRecord bsonRecord = {loc, Timestamp(it->oplogSlot.getTimestamp()), &(it->doc)};
bsonRecords.push_back(bsonRecord);
}