mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 06:59:54 -05:00
FIx up replog calls, add replog call to bdb passwd
This commit is contained in:
parent
e08a10b853
commit
7431cb9eee
3 changed files with 27 additions and 21 deletions
|
|
@ -184,27 +184,30 @@ retry: /* transaction retry */
|
|||
goto done;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* change the entry itself */
|
||||
rc = bdb_id2entry_update( be, ltid, e );
|
||||
if( rc != 0 ) {
|
||||
switch(rc) {
|
||||
case DB_LOCK_DEADLOCK:
|
||||
case DB_LOCK_NOTGRANTED:
|
||||
bdb_entry_return( be, e );
|
||||
e = NULL;
|
||||
goto retry;
|
||||
/* change the entry itself */
|
||||
rc = bdb_id2entry_update( be, ltid, e );
|
||||
if( rc != 0 ) {
|
||||
switch(rc) {
|
||||
case DB_LOCK_DEADLOCK:
|
||||
case DB_LOCK_NOTGRANTED:
|
||||
bdb_entry_return( be, e );
|
||||
e = NULL;
|
||||
goto retry;
|
||||
}
|
||||
*text = "entry update failed";
|
||||
rc = LDAP_OTHER;
|
||||
}
|
||||
*text = "entry update failed";
|
||||
rc = LDAP_OTHER;
|
||||
}
|
||||
|
||||
if( bdb->bi_txn && rc == 0 ) {
|
||||
rc = txn_commit( ltid, 0 );
|
||||
ltid = NULL;
|
||||
if( bdb->bi_txn && rc == 0 ) {
|
||||
rc = txn_commit( ltid, 0 );
|
||||
ltid = NULL;
|
||||
}
|
||||
op->o_private = NULL;
|
||||
|
||||
if( rc == LDAP_SUCCESS ) {
|
||||
replog( be, op, &e->e_name, &e->e_nname, &ml );
|
||||
}
|
||||
}
|
||||
op->o_private = NULL;
|
||||
|
||||
done:
|
||||
if( e != NULL ) {
|
||||
|
|
|
|||
|
|
@ -162,9 +162,11 @@ ldbm_back_exop_passwd(
|
|||
rc = LDAP_OTHER;
|
||||
}
|
||||
|
||||
replog( be, op, e->e_dn, e->e_ndn, &ml );
|
||||
if( rc == LDAP_SUCCESS ) {
|
||||
replog( be, op, &e->e_name, &e->e_nname, &ml );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
done:
|
||||
if( e != NULL ) {
|
||||
cache_return_entry_w( &li->li_cache, e );
|
||||
|
|
|
|||
|
|
@ -186,7 +186,8 @@ const char * connection_state2str( int state )
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void replog( Backend *be, Operation *op, char *dn, char *ndn, void *change)
|
||||
void replog( Backend *be, Operation *op,
|
||||
struct berval *dn, struct berval *ndn, void *change)
|
||||
{
|
||||
assert(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue