Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:stroeder:iam
openldap2
0002-openldap-its9738.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-openldap-its9738.patch of Package openldap2
diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 6c9825dd3a9e14dc63d9833355625f3d39cd0b2a..fd121879ba5ccce7cf3d103739b8a2219e72100e 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1602,7 +1602,7 @@ accesslog_response(Operation *op, SlapReply *rs) op->o_log_prefix, li->li_db_suffix.bv_val ); assert(0); } - op2.o_csn = op->o_csn; + slap_queue_csn( &op2, &op->o_csn ); } } @@ -1943,26 +1943,6 @@ accesslog_response(Operation *op, SlapReply *rs) /* contextCSN updates may still reach here */ op2.o_dont_replicate = op->o_dont_replicate; - if ( lo->mask & LOG_OP_WRITES ) { - struct berval maxcsn; - char cbuf[LDAP_PVT_CSNSTR_BUFSIZE]; - int foundit; - cbuf[0] = '\0'; - maxcsn.bv_val = cbuf; - maxcsn.bv_len = sizeof(cbuf); - /* If there was a commit CSN on the main DB, - * we must propagate it to the log DB for its - * own syncprov. Otherwise, don't generate one. - */ - slap_get_commit_csn( op, &maxcsn, &foundit ); - if ( !BER_BVISEMPTY( &maxcsn ) ) { - slap_queue_csn( &op2, &op->o_csn ); - } else { - attr_merge_normalize_one( e, slap_schema.si_ad_entryCSN, - &op->o_csn, op->o_tmpmemctx ); - } - } - op2.o_bd->be_add( &op2, &rs2 ); if ( rs2.sr_err != LDAP_SUCCESS ) { Debug( LDAP_DEBUG_SYNC, "%s accesslog_response: "
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor