Skip to content
Snippets Groups Projects
Commit 0f44c86f authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

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

Off-by-one left last scope unrefreshed
parent de5d5a53
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment