diff options
author | Eric Cox <eric.cox@mongodb.com> | 2020-10-23 21:29:33 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-09 22:28:26 +0000 |
commit | 942649a9fd069a9feb4ed9cbec661a7136dd36a9 (patch) | |
tree | 77914dd2720c27cf9fecef1c7319da08ca67619a /src/mongo/db/exec/idhack.cpp | |
parent | 3ee0a4d91917dd93d2de9426711a9f6a5b982cf5 (diff) | |
download | mongo-942649a9fd069a9feb4ed9cbec661a7136dd36a9.tar.gz |
SERVER-50838 Unchecked return value for recordCursor restore in IDHack stage
Diffstat (limited to 'src/mongo/db/exec/idhack.cpp')
-rw-r--r-- | src/mongo/db/exec/idhack.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/exec/idhack.cpp b/src/mongo/db/exec/idhack.cpp index 22319c36e74..af8edac2a9b 100644 --- a/src/mongo/db/exec/idhack.cpp +++ b/src/mongo/db/exec/idhack.cpp @@ -148,8 +148,10 @@ void IDHackStage::doSaveStateRequiresIndex() { } void IDHackStage::doRestoreStateRequiresIndex() { - if (_recordCursor) - _recordCursor->restore(); + if (_recordCursor) { + auto couldRestore = _recordCursor->restore(); + uassert(5083800, "IDHackStage could not restore cursor", couldRestore); + } } void IDHackStage::doDetachFromOperationContext() { |