Browse Source

Issue 51165 - Set the operation start time for extended ops

Bug Description:  Extended ops, likewhat is used in replication, were not
                  setting the operation start time.  This caused invalid
                  values in the new access log keywords (wtime & optime)

Fix Description:  Set the start start at the start of the extended op.

Fixes: https://pagure.io/389-ds-base/issue/51165

Reviewed by: mreynolds (one line commit rule)
Mark Reynolds 5 years ago
parent
commit
dda3ab0da5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ldap/servers/slapd/extendop.c

+ 3 - 0
ldap/servers/slapd/extendop.c

@@ -279,6 +279,9 @@ do_extended(Slapi_PBlock *pb)
     slapi_pblock_get(pb, SLAPI_OPERATION, &pb_op);
     slapi_pblock_get(pb, SLAPI_CONNECTION, &pb_conn);
 
+    /* Set the time we actually started the operation */
+    slapi_operation_set_time_started(pb_op);
+
     if (pb_conn == NULL || pb_op == NULL) {
         send_ldap_result(pb, LDAP_OPERATIONS_ERROR, NULL, "param error", 0, NULL);
         slapi_log_err(SLAPI_LOG_ERR, "do_extended",