Skip to content
Snippets Groups Projects
Commit a12928ec authored by Chris Larsen's avatar Chris Larsen
Browse files

[core] Fix an issue where the threadid and threadCount were not passed

to the workload client threads. Had to use setters to get around the
checkstyle complaint of having too many parameters.
parent 169150b7
No related branches found
No related tags found
No related merge requests found
......@@ -405,6 +405,14 @@ class ClientThread implements Runnable {
this.completeLatch = completeLatch;
}
public void setThreadId(final int threadId) {
threadid = threadId;
}
public void setThreadCount(final int threadCount) {
threadcount = threadCount;
}
public int getOpsDone() {
return opsdone;
}
......@@ -877,7 +885,8 @@ public final class Client {
ClientThread t = new ClientThread(db, dotransactions, workload, props, threadopcount, targetperthreadperms,
completeLatch);
t.setThreadId(threadid);
t.setThreadCount(threadcount);
clients.add(t);
}
......
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