Skip to content

Commit 29ae512

Browse files
committed
stale read test
1 parent b11fd70 commit 29ae512

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roo/roo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ func main() {
435435
rlog.Infof("[STOPPED EXTERNAL - WRITE]")
436436
rlog.Infof("[STARTED EXTERNAL - READ]")
437437
for i := 0; i < 1000000; i++ {
438+
//kv.nh.StaleRead(kv.AppConfig.Cluster.ShardID, "_test"+strconv.Itoa(rand.Intn(max-min+1)+min))
438439
kv.nh.SyncRead(ctx, kv.AppConfig.Cluster.ShardID, "_test"+strconv.Itoa(rand.Intn(max-min+1)+min))
439440
}
440441
rlog.Infof("[STOPPED EXTERNAL - READ]")

0 commit comments

Comments
 (0)