| 54 | } |
| 55 | |
| 56 | static uint64_t MaxFileSizeForLevel(int level, int64_t target_file_size) { |
| 57 | if (level == 2) { |
| 58 | return 2 * target_file_size; |
| 59 | } else if (level > 2) { |
| 60 | return 8 * target_file_size; |
| 61 | } |
| 62 | return target_file_size; // We could vary per level to reduce number of |
| 63 | // files? |
| 64 | } |
| 65 | |
| 66 | static int64_t TotalFileSize(const std::vector<FileMetaData*>& files) { |
| 67 | int64_t sum = 0; |
no outgoing calls
no test coverage detected