The LevelDB iterator/DB deallocation order bug is pretty much fixed by having each...
authorKevin James Matzen <kmatzen@cs.cornell.edu>
Mon, 13 Oct 2014 00:43:01 +0000 (20:43 -0400)
committerKevin James Matzen <kmatzen@cs.cornell.edu>
Tue, 14 Oct 2014 23:31:30 +0000 (19:31 -0400)
commit2200a7a4b1f7fa7ac5fac7a2463552e8fe0ca9c2
tree1da8ca12ec2b5b53d51be86c338d928e8a9fa990
parente0b572dd1a63d5dda000ee4cc803be04e51597a1
The LevelDB iterator/DB deallocation order bug is pretty much fixed by having each iterator hold a shared pointer to the DB.  I manually specified a deconstructor for the LeveldbState to make it clear what order these two things need to be deallocated in.
include/caffe/leveldb_database.hpp
src/caffe/layers/data_layer.cpp
src/caffe/test/test_database.cpp
tools/compute_image_mean.cpp