goto return_results;
}
+#ifdef BDB_PSEARCH
if ( LDAP_STAILQ_EMPTY( &op->o_bd->be_syncinfo )) {
rc = bdb_csn_commit( op, rs, ltid, ei, &suffix_ei,
&ctxcsn_e, &ctxcsn_added, locker );
goto retry;
}
}
+#endif
/* post-read */
if( op->o_postread ) {
#include "lutil.h"
#include "back-bdb.h"
+#ifdef BDB_PSEARCH
int
bdb_csn_commit(
Operation *op,
return rs->sr_err;
}
+#endif
ldap_pvt_thread_mutex_unlock( &bdb->bi_lastid_mutex );
#endif
+#ifdef BDB_PSEARCH
if ( !dn_match( &ctxcsn_ndn, &op->o_req_ndn ) &&
!be_issuffix( op->o_bd, &op->o_req_ndn ) &&
LDAP_STAILQ_EMPTY( &op->o_bd->be_syncinfo )) {
goto retry;
}
}
+#endif
if( op->o_noop ) {
if ( ( rs->sr_err = TXN_ABORT( ltid ) ) != 0 ) {
goto return_results;
}
+#ifdef BDB_PSEARCH
if ( LDAP_STAILQ_EMPTY( &op->o_bd->be_syncinfo )) {
rc = bdb_csn_commit( op, rs, ltid, ei, &suffix_ei,
&ctxcsn_e, &ctxcsn_added, locker );
goto retry;
}
}
+#endif
if( op->o_postread ) {
if( postread_ctrl == NULL ) {
goto return_results;
}
+#ifdef BDB_PSEARCH
if ( LDAP_STAILQ_EMPTY( &op->o_bd->be_syncinfo )) {
rc = bdb_csn_commit( op, rs, ltid, ei, &suffix_ei,
&ctxcsn_e, &ctxcsn_added, locker );
goto retry;
}
}
+#endif
if( op->o_postread ) {
if( postread_ctrl == NULL ) {
bdb_cache_return_entry_r( bdb->bi_dbenv, &bdb->bi_cache, e, &lock );
}
ber_bvfree( search_context_csn );
-
-#else
- bdb_cache_return_entry_r( bdb->bi_dbenv, &bdb->bi_cache, e, &lock );
#endif
if ( !opinfo )