| 120 | } |
| 121 | |
| 122 | void LMDBWriter::DoubleMapSize() { |
| 123 | struct MDB_envinfo current_info; |
| 124 | MDB_CHECK(mdb_env_info(mdb_env_, ¤t_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 | |
| 130 | inline void LMDBWriter::MDB_CHECK(int mdb_status) { |
| 131 | CHECK_EQ(mdb_status, MDB_SUCCESS) << mdb_strerror(mdb_status); |
nothing calls this directly
no outgoing calls
no test coverage detected