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
...@@ -406,7 +406,7 @@ mdb_waitfixup( Operation *op, ww_ctx *ww, MDB_cursor *mci, MDB_cursor *mcd, IdSc ...@@ -406,7 +406,7 @@ mdb_waitfixup( Operation *op, ww_ctx *ww, MDB_cursor *mci, MDB_cursor *mcd, IdSc
ww->data.mv_data = NULL; ww->data.mv_data = NULL;
} else if ( isc->scopes[0].mid > 1 ) { /* candidate-based search */ } else if ( isc->scopes[0].mid > 1 ) { /* candidate-based search */
int i; 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 ) if ( !isc->scopes[i].mval.mv_data )
continue; continue;
key.mv_data = &isc->scopes[i].mid; key.mv_data = &isc->scopes[i].mid;
......
Supports Markdown
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