commit | 345ec2453a0af0865e81457374d6f81c696bb9d2 | [log] [tgz] |
---|---|---|
author | Raja Daoud <rdaoud@google.com> | Thu Jun 11 17:23:05 2015 -0700 |
committer | Raja Daoud <rdaoud@google.com> | Thu Jun 11 17:27:28 2015 -0700 |
tree | 5ff3cdb842a643efde22982258d4abb3a330c4d0 | |
parent | b93162e237b9cec21ba00446648fe204ec11d27d [diff] |
services/syncbase: fix --race errors. Fix race conditions detected by Syncbase --race testing: * Add a mutex for a random number generator that uses a NewSource(). * Goroutines spawned in a loop must get a copy of the loop iterator, not access it through closure. Change-Id: I88094fceac6708be2a3fbb49d2861de105534c80