Fix race condition when scheduling a replication

The state of PushOne object was modified after the operation was scheduled.
Depending on the delay parameter the PushOne.run() could be called before (when
the delay is zero or close to zero) or after (longer delay) the current thread
calls e.addState(ref, state). Thus, the thread executing PushOne.run() may or
may not see the update of its stateMap. Further, the stateMap is a
LinkedListMultimap which is not thread safe and the PushOne doesn't synchronize
access to it.

Change-Id: Ib26a5933a7993a6d2f0501e5daaf06a7892e597f
1 file changed
tree: 4f4de5ddc175eca8a9016ba93a384a4abd439df0
  1. .gitignore
  2. .mailmap
  3. .settings/
  4. BUILD
  5. LICENSE
  6. src/