|
|
d4e26e |
From 7ea2eafc8414d2bce6c57447d019276a124a0c77 Mon Sep 17 00:00:00 2001
|
|
|
d4e26e |
From: Mark Reynolds <mreynolds@redhat.com>
|
|
|
d4e26e |
Date: Mon, 17 Aug 2020 09:20:07 -0400
|
|
|
d4e26e |
Subject: [PATCH] Issue 51165 - Set the operation start time for extended ops
|
|
|
d4e26e |
|
|
|
d4e26e |
Bug Description: Extended ops, likewhat is used in replication, were not
|
|
|
d4e26e |
setting the operation start time. This caused invalid
|
|
|
d4e26e |
values in the new access log keywords (wtime & optime)
|
|
|
d4e26e |
|
|
|
d4e26e |
Fix Description: Set the start start at the start of the extended op.
|
|
|
d4e26e |
|
|
|
d4e26e |
Fixes: https://pagure.io/389-ds-base/issue/51165
|
|
|
d4e26e |
|
|
|
d4e26e |
Reviewed by: mreynolds (one line commit rule)
|
|
|
d4e26e |
---
|
|
|
d4e26e |
ldap/servers/slapd/extendop.c | 3 +++
|
|
|
d4e26e |
1 file changed, 3 insertions(+)
|
|
|
d4e26e |
|
|
|
d4e26e |
diff --git a/ldap/servers/slapd/extendop.c b/ldap/servers/slapd/extendop.c
|
|
|
d4e26e |
index 98595bcaa..59a993ea8 100644
|
|
|
d4e26e |
--- a/ldap/servers/slapd/extendop.c
|
|
|
d4e26e |
+++ b/ldap/servers/slapd/extendop.c
|
|
|
d4e26e |
@@ -221,6 +221,9 @@ do_extended(Slapi_PBlock *pb)
|
|
|
d4e26e |
slapi_pblock_get(pb, SLAPI_OPERATION, &pb_op);
|
|
|
d4e26e |
slapi_pblock_get(pb, SLAPI_CONNECTION, &pb_conn);
|
|
|
d4e26e |
|
|
|
d4e26e |
+ /* Set the time we actually started the operation */
|
|
|
d4e26e |
+ slapi_operation_set_time_started(pb_op);
|
|
|
d4e26e |
+
|
|
|
d4e26e |
if (pb_conn == NULL || pb_op == NULL) {
|
|
|
d4e26e |
send_ldap_result(pb, LDAP_OPERATIONS_ERROR, NULL, "param error", 0, NULL);
|
|
|
d4e26e |
slapi_log_err(SLAPI_LOG_ERR, "do_extended",
|
|
|
d4e26e |
--
|
|
|
d4e26e |
2.30.2
|
|
|
d4e26e |
|