chobomuffin/stalka — pull request #4 by cliffano (2012-11-23 00:30:12+00:00)
Title: Trigger statsWriter after creating a new sequence doc

because otherwise stats will have a stale value while waiting for any change.

Problem scenario (before the patch):
- last sequence 500
- database deleted, _local/feed doc is gone
- stalka failed update, retried, and created a new sequence
- _local/feed last sequence: 0, but stats client still had 500
- stats on the client won't be corrected until there's a change notification
- the client didn't do anything that might update change notification due to last sequence 500
- both stalka and client wait for each other indefinitely

This patch fixes the above scenario.