mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
txn may fail to give us a scan op
This commit is contained in:
parent
3bbaa8103b
commit
22f6e45f2a
@ -634,6 +634,10 @@ int ndb_back_search( Operation *op, SlapReply *rs )
|
||||
}
|
||||
|
||||
scan = txn->getNdbIndexScanOperation( "PRIMARY", DN2ID_TABLE );
|
||||
if ( !scan ) {
|
||||
rs->sr_err = LDAP_OTHER;
|
||||
goto leave;
|
||||
}
|
||||
scan->readTuples( NdbOperation::LM_CommittedRead );
|
||||
rc = ndb_dn2bound( scan, &rdns );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user