| 9 | DECLARE_bool(verbose); |
| 10 | |
| 11 | void SlotReader::init(const DataConfig& data, const DataConfig& cache) { |
| 12 | // if (cache.file_size()) dump_to_disk_ = true; |
| 13 | CHECK(cache.file_size()); |
| 14 | cache_ = cache.file(0); |
| 15 | data_ = data; |
| 16 | } |
| 17 | |
| 18 | string SlotReader::cacheName(const DataConfig& data, int slot_id) const { |
| 19 | CHECK_GT(data.file_size(), 0); |