commit | 4f118323b9a6f431d17a31c0ac415daf0e8ae5d4 | [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 | 79640e10c044960ceef3b5ce1f97c821a19095eb | |
parent | 65e68b852e7462c5c54d3ef4dba034ea3be30a16 [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