]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/operation.c
ITS#7381 fix chain config for restarts
[openldap] / servers / slapd / operation.c
index 0f79fa86aaa1ed2340874292a0f5c27c19961acb..1d83ffd4b29b79533a5bd6d2942200afad9413aa 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2012 The OpenLDAP Foundation.
+ * Copyright 1998-2013 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -159,8 +159,8 @@ slap_op_free( Operation *op, void *ctx )
 void
 slap_op_time(time_t *t, int *nop)
 {
-       ldap_pvt_thread_mutex_lock( &slap_op_mutex );
        *t = slap_get_time();
+       ldap_pvt_thread_mutex_lock( &slap_op_mutex );
        if ( *t == last_time ) {
                *nop = ++last_incr;
        } else {