| 630 | } |
| 631 | |
| 632 | DataCache::Partition::Partition( |
| 633 | int32_t index, const string& path, int64_t capacity, int max_opened_files, |
| 634 | bool trace_replay) |
| 635 | : index_(index), |
| 636 | path_(path), |
| 637 | capacity_(max<int64_t>(capacity, PAGE_SIZE)), |
| 638 | max_opened_files_(max_opened_files), |
| 639 | trace_replay_(trace_replay), |
| 640 | meta_cache_(NewCache(GetCacheEvictionPolicy(FLAGS_data_cache_eviction_policy), |
| 641 | capacity_, path_)) {} |
| 642 | |
| 643 | DataCache::Partition::~Partition() { |
| 644 | if (!closed_) ReleaseResources(); |
nothing calls this directly
no test coverage detected