Permalink
Browse files

MB-4660: Explicitly Set number of thread to 1

Change-Id: Ib651bf9c16ce92626580e785a07e622d9189f8e7
Reviewed-on: http://review.couchbase.org/14695
Tested-by: Bin Cui <bin.cui@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information...
1 parent c9a2da9 commit 4a0abb77c1794ecd1bb48a02124dfeb07f95efda @bcui6611 bcui6611 committed with steveyen Apr 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 cbworkloadgen
View
@@ -150,7 +150,7 @@ if __name__ == "__main__":
parser.add_option("-b", "--bucket", dest="bucket", help="which bucket to insert data",
default="default", metavar="default")
parser.add_option("-p", "--password", dest="password",
- help="bucket password", metavar=" ")
+ help="bucket password", metavar=" ")
parser.add_option("-j", "--json", dest="load_json", help="insert json data",
default=False, metavar="True")
parser.add_option("-v", "--verbose", dest="verbose", help="run in verbose mode",
@@ -187,10 +187,10 @@ if __name__ == "__main__":
v = None
workers = []
try:
- no_threads = 1
+ options.num_of_threads = 1
number_of_items = int(options.items)
sharedProgressBar = SharedProgressBar(number_of_items)
- for i in range(0, int(no_threads)):
+ for i in range(0, int(options.num_of_threads)):
worker = SmartLoader(options, server, sharedProgressBar, i)
worker.start()
workers.append(worker)

0 comments on commit 4a0abb7

Please sign in to comment.