Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (10 sloc) 0.531 kB
Copyright (c) 2011 by Michael Neumann (
If you don't call RecordModelLevelDB#close at the end of your program the
RecordModel class might get garbage collected before the database object is
collected (there is no order on recycling when both objects are gone). But
when the database is closed it potentially needs to write back some data and as
such needs information from the RecordModel. If it's already recycled this is
very bad! You can prevent that by doing:
at_exit { db.close }
Jump to Line
Something went wrong with that request. Please try again.