neo4j/neo4j — pull request #3636 by davidegrohmann (2014-12-10 09:29:48+00:00)
Title: Fix a bug in the counts store which prevents recovery to happen

The CountsTracker code was checking that the txId stored in the Counts
Store is never smaller than the txId stored in the NeoStore. This is
not always true. The wrong assumption here is that dispite the fact
that the code rotates the Counts Store before flushing the NeoStore
pages, it might happen that the PageCache decides to evict the
NeoStore pages (and hence flush them to disk) before the Counts Store
rotation. The fix is basically removing the check and trust recovery
to fix the stores.