Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tapir
Manage
Activity
Members
Labels
Plan
Issues
8
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
syslab
tapir
Commits
b4238459
Commit
b4238459
authored
7 years ago
by
Naveen Kr. Sharma
Browse files
Options
Downloads
Patches
Plain Diff
bug with nkeys and client->stats()
parent
a6bb1e80
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
store/benchmark/retwisClient.cc
+6
-2
6 additions, 2 deletions
store/benchmark/retwisClient.cc
store/tools/run_test.sh
+1
-1
1 addition, 1 deletion
store/tools/run_test.sh
with
7 additions
and
3 deletions
store/benchmark/retwisClient.cc
+
6
−
2
View file @
b4238459
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
store/tools/run_test.sh
+
1
−
1
View file @
b4238459
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment