slapd server timing via a new slapd command line option '-t'.
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
ret = bdb2i_back_abandon_internal( be, conn, op, msgid );
- bdb2i_stop_timing( be->be_private, time1, "ABND", conn, op );
+ bdb2i_stop_timing( be->bd_info, time1, "ABND", conn, op );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
if ( bdb2i_enter_backend_w( get_dbenv( be ), &lock ) != 0 ) {
ret = bdb2i_back_add_internal( be, conn, op, e );
(void) bdb2i_leave_backend( get_dbenv( be ), lock );
- bdb2i_stop_timing( be->be_private, time1, "ADD", conn, op );
+ bdb2i_stop_timing( be->bd_info, time1, "ADD", conn, op );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
if ( bdb2i_enter_backend_r( get_dbenv( be ), &lock ) != 0 ) {
(void) bdb2i_leave_backend( get_dbenv( be ), lock );
- bdb2i_stop_timing( be->be_private, time1, "BIND", conn, op );
+ bdb2i_stop_timing( be->bd_info, time1, "BIND", conn, op );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
ret = bdb2i_back_db_close_internal( be );
- bdb2i_stop_timing( be->be_private, time1, "CLOSE", NULL, NULL );
+ bdb2i_stop_timing( be->bd_info, time1, "CLOSE", NULL, NULL );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
if ( bdb2i_enter_backend_r( get_dbenv( be ), &lock ) != 0 ) {
ret = bdb2i_back_compare_internal( be, conn, op, dn, ava );
(void) bdb2i_leave_backend( get_dbenv( be ), lock );
- bdb2i_stop_timing( be->be_private, time1, "CMP", conn, op );
+ bdb2i_stop_timing( be->bd_info, time1, "CMP", conn, op );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
ret = bdb2i_back_db_config_internal( be, fname, lineno, argc, argv );
- bdb2i_stop_timing( be->be_private, time1, "DB-CONFIG", NULL, NULL );
+ bdb2i_stop_timing( be->bd_info, time1, "DB-CONFIG", NULL, NULL );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
if ( bdb2i_enter_backend_w( get_dbenv( be ), &lock ) != 0 ) {
ret = bdb2i_back_delete_internal( be, conn, op, dn );
(void) bdb2i_leave_backend( get_dbenv( be ), lock );
- bdb2i_stop_timing( be->be_private, time1, "DEL", conn, op );
+ bdb2i_stop_timing( be->bd_info, time1, "DEL", conn, op );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
if ( bdb2i_enter_backend_r( get_dbenv( be ), &lock ) != 0 ) {
objectclassValue, groupattrName );
(void) bdb2i_leave_backend( get_dbenv( be ), lock );
- bdb2i_stop_timing( be->be_private, time1, "GRP", NULL, NULL );
+ bdb2i_stop_timing( be->bd_info, time1, "GRP", NULL, NULL );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
ret = bdb2i_back_db_init_internal( be );
- bdb2i_stop_timing( be->be_private, time1, "DB-INIT", NULL, NULL );
+ bdb2i_stop_timing( be->bd_info, time1, "DB-INIT", NULL, NULL );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
if ( bdb2i_enter_backend_w( get_dbenv( be ), &lock ) != 0 ) {
ret = bdb2i_back_modify_internal( be, conn, op, dn, modlist );
(void) bdb2i_leave_backend( get_dbenv( be ), lock );
- bdb2i_stop_timing( be->be_private, time1, "MOD", conn, op );
+ bdb2i_stop_timing( be->bd_info, time1, "MOD", conn, op );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
if ( bdb2i_enter_backend_w( get_dbenv( be ), &lock ) != 0 ) {
newrdn, deleteoldrdn );
(void) bdb2i_leave_backend( get_dbenv( be ), lock );
- bdb2i_stop_timing( be->be_private, time1, "MODRDN", conn, op );
+ bdb2i_stop_timing( be->bd_info, time1, "MODRDN", conn, op );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
if ( bdb2i_enter_backend_r( get_dbenv( be ), &lock ) != 0 ) {
slimit, tlimit, filter, filterstr, attrs, attrsonly );
(void) bdb2i_leave_backend( get_dbenv( be ), lock );
- bdb2i_stop_timing( be->be_private, time1, "SRCH", conn, op );
+ bdb2i_stop_timing( be->bd_info, time1, "SRCH", conn, op );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
ret = bdb2i_back_db_startup_internal( be );
- bdb2i_stop_timing( be->be_private, time1, "DB-START", NULL, NULL );
+ bdb2i_stop_timing( be->bd_info, time1, "DB-START", NULL, NULL );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
ret = bdb2i_back_db_shutdown_internal( be );
- bdb2i_stop_timing( be->be_private, time1, "DB-SHUTDOWN", NULL, NULL );
+ bdb2i_stop_timing( be->bd_info, time1, "DB-SHUTDOWN", NULL, NULL );
return( ret );
}
struct timeval time1;
int ret;
- bdb2i_start_timing( be->be_private, &time1 );
+ bdb2i_start_timing( be->bd_info, &time1 );
ret = bdb2i_back_unbind_internal( be, conn, op );
- bdb2i_stop_timing( be->be_private, time1, "UNBIND", conn, op );
+ bdb2i_stop_timing( be->bd_info, time1, "UNBIND", conn, op );
return( ret );
}
ACLCONF=$DATADIR/slapd-bdb2-acl.conf
MASTERCONF=$DATADIR/slapd-bdb2-repl-master.conf
SLAVECONF=$DATADIR/slapd-bdb2-repl-slave.conf
+ TIMING="-t"
else
LDIF2LDBM=../servers/slapd/tools/ldif2ldbm
CONF=$DATADIR/slapd-master.conf
fi
echo "Starting slapd on TCP/IP port $PORT..."
-$SLAPD -f $CONF -p $PORT -d $LVL > $MASTERLOG 2>&1 &
+$SLAPD -f $CONF -p $PORT -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
echo "Using ldapsearch to retrieve all the entries..."
fi
echo "Starting slapd on TCP/IP port $PORT..."
-$SLAPD -f $CONF -p $PORT -d $LVL > $MASTERLOG 2>&1 &
+$SLAPD -f $CONF -p $PORT -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
echo "Using ldapsearch to retrieve all the entries..."
rm -f $DBDIR/[!C]*
echo "Starting slapd on TCP/IP port $PORT..."
-$SLAPD -f $CONF -p $PORT -d $LVL > $MASTERLOG 2>&1 &
+$SLAPD -f $CONF -p $PORT -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
echo "Using ldapsearch to check that slapd is running..."
fi
echo "Starting slapd on TCP/IP port $PORT..."
-$SLAPD -f $CONF -p $PORT -d $LVL > $MASTERLOG 2>&1 &
+$SLAPD -f $CONF -p $PORT -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
echo "Testing slapd searching..."
fi
echo "Starting slapd on TCP/IP port $PORT..."
-$SLAPD -f $CONF -p $PORT -d $LVL > $MASTERLOG 2>&1 &
+$SLAPD -f $CONF -p $PORT -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
echo "Testing slapd modify operations..."
fi
echo "Starting slapd on TCP/IP port $PORT..."
-$SLAPD -f $ACLCONF -p $PORT -d $LVL > $MASTERLOG 2>&1 &
+$SLAPD -f $ACLCONF -p $PORT -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
echo "Testing slapd access control..."
rm -f $REPLDIR/[!C]*
echo "Starting master slapd on TCP/IP port $PORT..."
-$SLAPD -f $MASTERCONF -p $PORT -d $LVL > $MASTERLOG 2>&1 &
+$SLAPD -f $MASTERCONF -p $PORT -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
echo "Starting slave slapd on TCP/IP port $SLAVEPORT..."
-$SLAPD -f $SLAVECONF -p $SLAVEPORT -d $LVL > $SLAVELOG 2>&1 &
+$SLAPD -f $SLAVECONF -p $SLAVEPORT -d $LVL $TIMING > $SLAVELOG 2>&1 &
SLAVEPID=$!
echo "Using ldapsearch to check that master slapd is running..."