summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/repair_cursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/repair_cursor.cpp')
-rw-r--r--src/mongo/db/commands/repair_cursor.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/commands/repair_cursor.cpp b/src/mongo/db/commands/repair_cursor.cpp
index ac6155cc394..69ded443ec6 100644
--- a/src/mongo/db/commands/repair_cursor.cpp
+++ b/src/mongo/db/commands/repair_cursor.cpp
@@ -107,9 +107,10 @@ public:
exec->detachFromOperationContext();
auto pinnedCursor = collection->getCursorManager()->registerCursor(
- {exec.release(),
- ns.ns(),
- opCtx->recoveryUnit()->isReadingFromMajorityCommittedSnapshot()});
+ {std::move(exec),
+ ns,
+ opCtx->recoveryUnit()->isReadingFromMajorityCommittedSnapshot(),
+ cmdObj});
appendCursorResponseObject(
pinnedCursor.getCursor()->cursorid(), ns.ns(), BSONArray(), &result);