mafintosh / flat-file-db

Fast in-process flat file database that caches all data in memory
196 stars 15 forks source link

fails to read larger database #4

Closed veselov closed 9 years ago

veselov commented 9 years ago

Hi.

I don't quite know how to reproduce this yet, but I have a database that fails to read. There were some small entries added first, but then a large entry was added, and updated a few times.

trace:

# node backup-glacier.js 
oops : TypeError: Cannot call method 'push' of undefined TypeError: Cannot call method 'push' of undefined
    at free (/root/cronscripts/node_modules/flat-file-db/index.js:92:21)
    at /root/cronscripts/node_modules/flat-file-db/index.js:107:10
    at Array.forEach (native)
    at populateFreelist (/root/cronscripts/node_modules/flat-file-db/index.js:105:10)
    at parseDatabase (/root/cronscripts/node_modules/flat-file-db/index.js:80:2)
    at Database.openSync (/root/cronscripts/node_modules/flat-file-db/index.js:220:2)
    at Function.open.sync (/root/cronscripts/node_modules/flat-file-db/index.js:246:5)
    at /root/cronscripts/backup-glacier.js:37:23

file: http://manticore.2y.net/temp/backup.jdb.gz (1.8M)