summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/record_store.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/record_store.cpp')
-rw-r--r--src/mongo/db/storage/record_store.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/storage/record_store.cpp b/src/mongo/db/storage/record_store.cpp
index 194bf1f1641..152b4f952a6 100644
--- a/src/mongo/db/storage/record_store.cpp
+++ b/src/mongo/db/storage/record_store.cpp
@@ -76,7 +76,9 @@ Status RecordStore::truncate(OperationContext* opCtx) {
return doTruncate(opCtx);
}
-void RecordStore::cappedTruncateAfter(OperationContext* opCtx, RecordId end, bool inclusive) {
+void RecordStore::cappedTruncateAfter(OperationContext* opCtx,
+ const RecordId& end,
+ bool inclusive) {
validateWriteAllowed(opCtx);
doCappedTruncateAfter(opCtx, end, inclusive);
}