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 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 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
  6. src/