lib/daybreak/db.rb in daybreak-0.1.0 vs lib/daybreak/db.rb in daybreak-0.1.1
- old
+ new
@@ -122,10 +122,12 @@
end
# Reset and empty the database file.
def empty!
@writer.truncate!
+ close!
reset!
+ read!
end
alias_method :clear, :empty!
# Force all queued commits to be written to disk.
def flush!