ITS#4226 must close cursor when limiting candidate check

This commit is contained in:
Howard Chu 2005-11-29 11:34:47 +00:00
parent b2e673c37a
commit dcaa6aa830

View File

@ -1066,8 +1066,10 @@ inequality_candidates(
bdb_idl_union( ids, tmp );
if( op->ors_limit && op->ors_limit->lms_s_unchecked != -1 &&
BDB_IDL_N( ids ) >= (unsigned) op->ors_limit->lms_s_unchecked )
BDB_IDL_N( ids ) >= (unsigned) op->ors_limit->lms_s_unchecked ) {
cursor->c_close( cursor );
break;
}
}
ber_bvarray_free_x( keys, op->o_tmpmemctx );