diff options
Diffstat (limited to 'src/mongo/db/commands/resize_oplog.cpp')
-rw-r--r-- | src/mongo/db/commands/resize_oplog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/resize_oplog.cpp b/src/mongo/db/commands/resize_oplog.cpp index 5476c4ea249..840a7ed81c0 100644 --- a/src/mongo/db/commands/resize_oplog.cpp +++ b/src/mongo/db/commands/resize_oplog.cpp @@ -97,7 +97,8 @@ public: if (auto sizeMB = params.getSize()) { const long long sizeBytes = *sizeMB * 1024 * 1024; - uassertStatusOK(coll.getWritableCollection()->updateCappedSize(opCtx, sizeBytes)); + uassertStatusOK( + coll.getWritableCollection(opCtx)->updateCappedSize(opCtx, sizeBytes)); } if (auto minRetentionHoursOpt = params.getMinRetentionHours()) { |