]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb2/unbind.c
slap_set_time() is no longer necessary.
[openldap] / servers / slapd / back-bdb2 / unbind.c
index f18376531733986e6db8ca2275fd3c0973698df7..6b3a8757d34e233215e7497413c5302528be9e33 100644 (file)
@@ -10,7 +10,7 @@
 
 static int
 bdb2i_back_unbind_internal(
-       Backend     *be,
+       BackendDB     *be,
        Connection  *conn,
        Operation   *op
 )
@@ -21,28 +21,18 @@ bdb2i_back_unbind_internal(
 
 int
 bdb2_back_unbind(
-       Backend     *be,
+       BackendDB     *be,
        Connection  *conn,
        Operation   *op
 )
 {
-       struct timeval  time1, time2;
-       char   *elapsed_time;
-       int    ret;
+       struct timeval  time1;
+       int             ret;
 
-       gettimeofday( &time1, NULL );
+       bdb2i_start_timing( be->bd_info, &time1 );
 
        ret = bdb2i_back_unbind_internal( be, conn, op );
-
-       if ( bdb2i_do_timing ) {
-
-               gettimeofday( &time2, NULL);
-               elapsed_time = bdb2i_elapsed( time1, time2 );
-               Debug( LDAP_DEBUG_ANY, "conn=%d op=%d UNBIND elapsed=%s\n",
-                               conn->c_connid, op->o_opid, elapsed_time );
-               free( elapsed_time );
-
-       }
+       bdb2i_stop_timing( be->bd_info, time1, "UNBIND", conn, op );
 
        return( ret );
 }