Persist tasks before scheduling replication

Consolidate the replication firing paths and in doing so improve the
replicate-all path to persist events before scheduling them, thus
reducing the chance the task could be lost on server interruption. This
consolidation also has the side effect of adding replicate-all events to
the "beforeStartupEventsQueue" if they somehow happen to get fired
before replication is started.

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