Skip to content
Snippets Groups Projects
Commit b4238459 authored by Naveen Kr. Sharma's avatar Naveen Kr. Sharma
Browse files

bug with nkeys and client->stats()

parent a6bb1e80
No related branches found
No related tags found
No related merge requests found
......@@ -300,13 +300,17 @@ main(int argc, char **argv)
gettimeofday(&t2, NULL);
long latency = (t2.tv_sec - t1.tv_sec) * 1000000 + (t2.tv_usec - t1.tv_usec);
int retries = (client->Stats())[0];
int retries = 0;
if (!client->Stats().empty()) {
retries = client->Stats()[0];
}
fprintf(stderr, "%d %ld.%06ld %ld.%06ld %ld %d %d %d", ++nTransactions, t1.tv_sec,
t1.tv_usec, t2.tv_sec, t2.tv_usec, latency, status?1:0, ttype, retries);
fprintf(stderr, "\n");
if ( ((t2.tv_sec-t0.tv_sec)*1000000 + (t2.tv_usec-t0.tv_usec)) > duration*1000000)
if (((t2.tv_sec-t0.tv_sec)*1000000 + (t2.tv_usec-t0.tv_usec)) > duration*1000000)
break;
}
......
......@@ -71,7 +71,7 @@ for ((i=0; i<$nshard; i++))
do
echo "Starting shard$i replicas.."
$srcdir/store/tools/start_replica.sh shard$i $srcdir/store/tools/shard$i.config \
"$srcdir/store/$store/server -m $mode -f $srcdir/store/tools/keys -e $err -s $skew" $logdir
"$srcdir/store/$store/server -m $mode -f $srcdir/store/tools/keys -k $nkeys -e $err -s $skew" $logdir
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment