Commit 3ca79051 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#9557 back-mdb: fix mdb_waitfixup for candidate-based searches

Off-by-one left last scope unrefreshed
parent 21d48622
Pipeline #2728 failed with stage
in 45 minutes and 36 seconds
......@@ -406,7 +406,7 @@ mdb_waitfixup( Operation *op, ww_ctx *ww, MDB_cursor *mci, MDB_cursor *mcd, IdSc
ww->data.mv_data = NULL;
} else if ( isc->scopes[0].mid > 1 ) { /* candidate-based search */
int i;
for ( i=1; i<isc->scopes[0].mid; i++ ) {
for ( i=1; i<=isc->scopes[0].mid; i++ ) {
if ( !isc->scopes[i].mval.mv_data )
continue;
key.mv_data = &isc->scopes[i].mid;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment