mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
only abort update if failed pre/post read control is critical: the only thing RFC 4527 says about failure is that in case of failure of the read, no control is appended to the result message; maybe no failure should ever occur (please review)
This commit is contained in:
parent
117caa9aeb
commit
fb2d3926ce
@ -395,7 +395,11 @@ retry: /* transaction retry */
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"<=- " LDAP_XSTRING(bdb_add) ": post-read "
|
||||
"failed!\n", 0, 0, 0 );
|
||||
goto return_results;
|
||||
if ( op->o_postread & SLAP_CONTROL_CRITICAL ) {
|
||||
/* FIXME: is it correct to abort
|
||||
* operation if control fails? */
|
||||
goto return_results;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -351,7 +351,11 @@ retry: /* transaction retry */
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"<=- " LDAP_XSTRING(bdb_delete) ": pre-read "
|
||||
"failed!\n", 0, 0, 0 );
|
||||
goto return_results;
|
||||
if ( op->o_preread & SLAP_CONTROL_CRITICAL ) {
|
||||
/* FIXME: is it correct to abort
|
||||
* operation if control fails? */
|
||||
goto return_results;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -499,9 +499,13 @@ retry: /* transaction retry */
|
||||
&slap_pre_read_bv, preread_ctrl ) )
|
||||
{
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"<=- " LDAP_XSTRING(bdb_modify) ": pre-read failed!\n",
|
||||
0, 0, 0 );
|
||||
goto return_results;
|
||||
"<=- " LDAP_XSTRING(bdb_modify) ": pre-read "
|
||||
"failed!\n", 0, 0, 0 );
|
||||
if ( op->o_preread & SLAP_CONTROL_CRITICAL ) {
|
||||
/* FIXME: is it correct to abort
|
||||
* operation if control fails? */
|
||||
goto return_results;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -570,7 +574,11 @@ retry: /* transaction retry */
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"<=- " LDAP_XSTRING(bdb_modify)
|
||||
": post-read failed!\n", 0, 0, 0 );
|
||||
goto return_results;
|
||||
if ( op->o_postread & SLAP_CONTROL_CRITICAL ) {
|
||||
/* FIXME: is it correct to abort
|
||||
* operation if control fails? */
|
||||
goto return_results;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -578,8 +578,12 @@ retry: /* transaction retry */
|
||||
{
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"<=- " LDAP_XSTRING(bdb_modrdn)
|
||||
": post-read failed!\n", 0, 0, 0 );
|
||||
goto return_results;
|
||||
": pre-read failed!\n", 0, 0, 0 );
|
||||
if ( op->o_preread & SLAP_CONTROL_CRITICAL ) {
|
||||
/* FIXME: is it correct to abort
|
||||
* operation if control fails? */
|
||||
goto return_results;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -717,7 +721,11 @@ retry: /* transaction retry */
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"<=- " LDAP_XSTRING(bdb_modrdn)
|
||||
": post-read failed!\n", 0, 0, 0 );
|
||||
goto return_results;
|
||||
if ( op->o_postread & SLAP_CONTROL_CRITICAL ) {
|
||||
/* FIXME: is it correct to abort
|
||||
* operation if control fails? */
|
||||
goto return_results;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user