MCPcopy Create free account
hub / github.com/BVLC/caffe / DoubleMapSize

Method DoubleMapSize

src/caffe/util/db_lmdb.cpp:103–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void LMDBTransaction::DoubleMapSize() {
104 struct MDB_envinfo current_info;
105 MDB_CHECK(mdb_env_info(mdb_env_, &current_info));
106 size_t new_size = current_info.me_mapsize * 2;
107 DLOG(INFO) << "Doubling LMDB map size to " << (new_size>>20) << "MB ...";
108 MDB_CHECK(mdb_env_set_mapsize(mdb_env_, new_size));
109}
110
111} // namespace db
112} // namespace caffe

Callers

nothing calls this directly

Calls 1

MDB_CHECKFunction · 0.85

Tested by

no test coverage detected