Skip to content

Commit

Permalink
SERVER-64498: Add WT_ROLLBACK check in addition to WT_CACHE_FULL
Browse files Browse the repository at this point in the history
  • Loading branch information
ykangpark authored and Evergreen Agent committed Mar 23, 2022
1 parent 2fbc715 commit 8c30569
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1950,7 +1950,8 @@ void WiredTigerRecordStore::_initNextIdIfNeeded(OperationContext* opCtx) {
// largest_key API returns the largest key in the table regardless of visibility. This ensures
// we don't re-use RecordIds that are not visible.
int ret = cursor->largest_key(cursor);
if (ret == WT_CACHE_FULL) {
// TODO (SERVER-64461): Remove WT_CACHE_FULL error check after WT-8767
if (ret == WT_CACHE_FULL || ret == WT_ROLLBACK) {
// Force the caller to rollback its transaction if we can't make progess with eviction.
// TODO (SERVER-63620): Convert this to a different error code that is distinguishable from
// a true write conflict.
Expand Down

0 comments on commit 8c30569

Please sign in to comment.