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

Off-by-one left last scope unrefreshed
This commit is contained in:
Howard Chu 2021-05-27 12:48:36 +01:00
parent 21d48622c7
commit 3ca790514f

View File

@ -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;