mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 21:19:53 -05:00
txn may fail to give us a scan op
This commit is contained in:
parent
3bbaa8103b
commit
22f6e45f2a
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue