Skip to content

Commit

Permalink
thats not why the db gets blanked. i guess node is being interrupted …
Browse files Browse the repository at this point in the history
…during the file write operation
  • Loading branch information
mikesmullin committed Dec 31, 2012
1 parent 4e43f78 commit 493bc21
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion coffee/node-sqlite-purejs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ module.exports = class Sql
save: (cb) ->
view = @db.exportData()
buffer = new Buffer view.byteLength
return false if buffer.length is 0 # happens sometimes when node is restarted; avoid blanking the db
i = 0
while i < buffer.length
buffer[i] = view[i++]
Expand Down

0 comments on commit 493bc21

Please sign in to comment.