| 2242 | } |
| 2243 | |
| 2244 | size_t FileCache::getFileSegmentsNum() const |
| 2245 | { |
| 2246 | /// We use this method for metrics, so it is ok to get approximate result. |
| 2247 | return main_priority->getElementsCountApprox(); |
| 2248 | } |
| 2249 | |
| 2250 | void FileCache::assertCacheCorrectnessWithProbability() |
| 2251 | { |