]> git.sur5r.net Git - openldap/commitdiff
Use SLAPI_LOG_OPERATION instead of private flag
authorLuke Howard <lukeh@openldap.org>
Mon, 25 Jul 2005 10:24:02 +0000 (10:24 +0000)
committerLuke Howard <lukeh@openldap.org>
Mon, 25 Jul 2005 10:24:02 +0000 (10:24 +0000)
servers/slapd/slapi/slapi.h
servers/slapd/slapi/slapi_ops.c

index 07f7c5975655536fbf3cd7d8b0ecea0b838af236..6f0e87163df5a0d59794328cc4c02bf55efe3fbc 100644 (file)
@@ -154,9 +154,6 @@ struct slapi_pblock {
 
 #define SLAPI_DB2LDIF_PRINTKEY                 183
 
-#define SLAPI_PARENT_TXN                       190
-#define SLAPI_TXN                              191
-
 #define        SLAPI_CHANGENUMBER                      197
 #define        SLAPI_LOG_OPERATION                     198
 
index ae6dcb3b3237353b75c2f69c82c95bfdf2664bcf..8f1fb2a908842559ec06a2bfbf1c658043c6889e 100644 (file)
@@ -751,9 +751,8 @@ slapi_modify_internal(
 
        pb = slapi_pblock_new();
 
-       slapi_modify_internal_set_pb( pb, ldn, mods, controls, NULL, NULL,
-               log_change ? SLAPI_OP_FLAG_LOG_CHANGE : 0 );
-
+       slapi_modify_internal_set_pb( pb, ldn, mods, controls, NULL, NULL, 0 );
+       slapi_pblock_set( pb, SLAPI_LOG_OPERATION, (void *)log_change );
        slapi_modify_internal_pb( pb );
 
        return pb;
@@ -783,15 +782,14 @@ slapi_add_internal(
        char * dn,
        LDAPMod **attrs,
        LDAPControl **controls,
-       int log_changes )
+       int log_change )
 {
        Slapi_PBlock *pb;
 
        pb = slapi_pblock_new();
 
-       slapi_add_internal_set_pb( pb, dn, attrs, controls, NULL,
-               log_changes ? SLAPI_OP_FLAG_LOG_CHANGE : 0 );
-       
+       slapi_add_internal_set_pb( pb, dn, attrs, controls, NULL, 0);
+       slapi_pblock_set( pb, SLAPI_LOG_OPERATION, (void *)log_change );
        slapi_add_internal_pb( pb );
 
        return pb;
@@ -816,15 +814,14 @@ Slapi_PBlock *
 slapi_add_entry_internal(
        Slapi_Entry *e, 
        LDAPControl **controls, 
-       int log_changes )
+       int log_change )
 {
        Slapi_PBlock *pb;
 
        pb = slapi_pblock_new();
 
-       slapi_add_entry_internal_set_pb( pb, e, controls, NULL,
-               log_changes ? SLAPI_OP_FLAG_LOG_CHANGE : 0 );
-       
+       slapi_add_entry_internal_set_pb( pb, e, controls, NULL, 0 );
+       slapi_pblock_set( pb, SLAPI_LOG_OPERATION, (void *)log_change );
        slapi_add_internal_pb( pb );
 
        return pb;
@@ -878,9 +875,8 @@ slapi_modrdn_internal(
        pb = slapi_pblock_new ();
 
        slapi_rename_internal_set_pb( pb, olddn, lnewrdn, NULL,
-               deloldrdn, controls, NULL, NULL,
-               log_change ? SLAPI_OP_FLAG_LOG_CHANGE : 0 );
-
+               deloldrdn, controls, NULL, NULL, 0 );
+       slapi_pblock_set( pb, SLAPI_LOG_OPERATION, (void *)log_change );
        slapi_modrdn_internal_pb( pb );
 
        return pb;
@@ -923,9 +919,8 @@ slapi_delete_internal(
 
        pb = slapi_pblock_new();
 
-       slapi_delete_internal_set_pb( pb, ldn, controls, NULL, NULL,
-               log_change ? SLAPI_OP_FLAG_LOG_CHANGE : 0 );
-
+       slapi_delete_internal_set_pb( pb, ldn, controls, NULL, NULL, 0 );
+       slapi_pblock_set( pb, SLAPI_LOG_OPERATION, (void *)log_change );
        slapi_delete_internal_pb( pb );
 
        return pb;