]> git.sur5r.net Git - openldap/commitdiff
ITS#5370 slap_op_time mutex
authorHoward Chu <hyc@openldap.org>
Tue, 12 Feb 2008 21:27:15 +0000 (21:27 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 12 Feb 2008 21:27:15 +0000 (21:27 +0000)
servers/slapd/operation.c

index e975eae28d3bb152ff88dfa684346601d1de08b3..b3ec0372bc4d389353227b4b128ddd22d5e66c01 100644 (file)
@@ -129,8 +129,8 @@ slap_op_free( Operation *op, void *ctx )
 void
 slap_op_time(time_t *t, int *nop)
 {
-       *t = slap_get_time();
        ldap_pvt_thread_mutex_lock( &slap_op_mutex );
+       *t = slap_get_time();
        if ( *t == last_time ) {
                *nop = ++last_incr;
        } else {