From a12928ec2ef4e234718dc45236d1b28e06adf975 Mon Sep 17 00:00:00 2001
From: Chris Larsen <clarsen@yahoo-inc.com>
Date: Wed, 2 Aug 2017 23:43:20 -0700
Subject: [PATCH] [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.

---
 core/src/main/java/com/yahoo/ycsb/Client.java | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/core/src/main/java/com/yahoo/ycsb/Client.java b/core/src/main/java/com/yahoo/ycsb/Client.java
index 4fc427b0..94d14ce2 100644
--- a/core/src/main/java/com/yahoo/ycsb/Client.java
+++ b/core/src/main/java/com/yahoo/ycsb/Client.java
@@ -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);
       }
 
-- 
GitLab