LMDB doesn't support many concurrent read-only transactions, so this preallocates...
authorKevin James Matzen <kmatzen@cs.cornell.edu>
Sat, 18 Oct 2014 06:51:29 +0000 (02:51 -0400)
committerKevin James Matzen <kmatzen@cs.cornell.edu>
Sat, 18 Oct 2014 06:51:29 +0000 (02:51 -0400)
commite41ddbd3d70eff49a7bab430bb085d3b89647b4d
tree7ab9c6cd79d721600cff0d702c93be94e6a740c6
parent1ed11d56114e10c6afbe12bfbe1eb780eb6d2d3b
LMDB doesn't support many concurrent read-only transactions, so this preallocates one read-only transaction and reuses it.  It's very important that iterations are considered invalid after a commit has been performed.
include/caffe/dataset.hpp
include/caffe/leveldb_dataset.hpp
include/caffe/lmdb_dataset.hpp
src/caffe/lmdb_dataset.cpp
src/caffe/test/test_dataset.cpp