Skip to content

Commit

Permalink
fix read key range
Browse files Browse the repository at this point in the history
Read threads had a chance to ask for key ('test, test', 'k10000') which is not written.
  • Loading branch information
dwelch-spike committed Oct 23, 2020
1 parent 9e79b5d commit efbdd36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/client/multi_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def readWork(nReads, thrName):
t0 = float(time.time())

for x in range(0, nReads):
kstr = 'k' + str(random.randint(0, numKeys))
kstr = 'k' + str(random.randrange(0, numKeys))
key = (namespace, testSet, kstr)
try:
(key, _, _) = client.get(key)
Expand Down

0 comments on commit efbdd36

Please sign in to comment.