persvr/perstore — pull request #38 by kitsonk (2012-10-14 07:31:14+00:00)
Title: Fixing ordering of Peristent store init

There appears to be an issue when using Persistent store where if you pass a `filename` in the options, it will call `initializeFile(filename)` prior to creating the memory store. This is fine when the store does not exist, but when it does exist the store is not then available when `store.setIndex()` is called in `initializeFile()`.

This pull request resolves that by creating the memory store prior to any point where the `initializeFile()` is called.