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.
There appears to be an issue when using Persistent store where if you pass a
filename
in the options, it will callinitializeFile(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 whenstore.setIndex()
is called ininitializeFile()
.This pull request resolves that by creating the memory store prior to any point where the
initializeFile()
is called.