]> git.sur5r.net Git - openldap/commitdiff
ITS#6503
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 6 Jan 2011 22:59:55 +0000 (22:59 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 6 Jan 2011 22:59:55 +0000 (22:59 +0000)
CHANGES
servers/slapd/overlays/syncprov.c

diff --git a/CHANGES b/CHANGES
index 0f97e978fb4c86dcf544c00c912d50e40ddcfb8e..f59e41bc77270e1a8cd6f0551ccdc7379e91a205 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -100,6 +100,7 @@ OpenLDAP 2.4.24 Engineering
        Fixed slapo-syncprov to refresh if context is dirty (ITS#6710)
        Fixed slapo-syncprov CSN updates to all replicas (ITS#6718)
        Fixed slapo-syncprov sessionlog ordering (ITS#6716)
+       Fixed slapo-syncprov sessionlog with adds (ITS#6503)
        Fixed slapo-translucent entry leak (ITS#6746)
        Fixed contrib/autogroup LDAP URI with attribute filter (ITS#6536)
        Fixed contrib/autogroup install location (ITS#6684)
index ff562d3ddeec016fa99cded85cd67d1a6824ce62..4ccc01a92c5e9a06f4d7ecee27cd3593438b1706 100644 (file)
@@ -1641,6 +1641,8 @@ syncprov_playlog( Operation *op, SlapReply *rs, sessionlog *sl,
                        delcsn[0].bv_len = se->se_csn.bv_len;
                        delcsn[0].bv_val[delcsn[0].bv_len] = '\0';
                } else {
+                       if ( se->se_tag == LDAP_REQ_ADD )
+                               continue;
                        nmods++;
                        j = num - nmods;
                }
@@ -1930,7 +1932,7 @@ syncprov_op_response( Operation *op, SlapReply *rs )
                }
 
                /* Add any log records */
-               if ( si->si_logs && op->o_tag != LDAP_REQ_ADD ) {
+               if ( si->si_logs ) {
                        syncprov_add_slog( op );
                }
 leave:         ldap_pvt_thread_mutex_unlock( &si->si_resp_mutex );