MCPcopy Create free account
hub / github.com/apache/singa / DoubleMapSize

Method DoubleMapSize

src/io/lmdb_writer.cc:122–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void LMDBWriter::DoubleMapSize() {
123 struct MDB_envinfo current_info;
124 MDB_CHECK(mdb_env_info(mdb_env_, &current_info));
125 size_t new_size = current_info.me_mapsize * 2;
126 LOG(INFO) << "Doubling LMDB map size to " << (new_size >> 20) << "MB ...";
127 MDB_CHECK(mdb_env_set_mapsize(mdb_env_, new_size));
128}
129
130inline void LMDBWriter::MDB_CHECK(int mdb_status) {
131 CHECK_EQ(mdb_status, MDB_SUCCESS) << mdb_strerror(mdb_status);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected