| 120 | } |
| 121 | |
| 122 | static int TableCacheSize(const Options& sanitized_options) { |
| 123 | // Reserve ten files or so for other uses and give the rest to TableCache. |
| 124 | return sanitized_options.max_open_files - kNumNonTableCacheFiles; |
| 125 | } |
| 126 | |
| 127 | DBImpl::DBImpl(const Options& raw_options, const std::string& dbname) |
| 128 | : env_(raw_options.env), |