Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YCSB
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Adnan Ahmad
YCSB
Commits
5e384b4c
Commit
5e384b4c
authored
9 years ago
by
Sean Busbey
Browse files
Options
Downloads
Plain Diff
Merge pull request #338 from tlopatic/master
[core] Execute correct number of operations
parents
ba78526c
5df411f3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/java/com/yahoo/ycsb/Client.java
+9
-1
9 additions, 1 deletion
core/src/main/java/com/yahoo/ycsb/Client.java
with
9 additions
and
1 deletion
core/src/main/java/com/yahoo/ycsb/Client.java
+
9
−
1
View file @
5e384b4c
...
@@ -743,7 +743,15 @@ public class Client
...
@@ -743,7 +743,15 @@ public class Client
}
}
Thread
t
=
new
ClientThread
(
db
,
dotransactions
,
workload
,
threadid
,
threadcount
,
props
,
opcount
/
threadcount
,
targetperthreadperms
);
int
threadopcount
=
opcount
/
threadcount
;
// ensure correct number of operations, in case opcount is not a multiple of threadcount
if
(
threadid
<
opcount
%
threadcount
)
{
++
threadopcount
;
}
Thread
t
=
new
ClientThread
(
db
,
dotransactions
,
workload
,
threadid
,
threadcount
,
props
,
threadopcount
,
targetperthreadperms
);
threads
.
add
(
t
);
threads
.
add
(
t
);
//t.start();
//t.start();
...
...
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