| 238 | } |
| 239 | |
| 240 | Error statusToError(const rocksdb::Status& s) { |
| 241 | if (s.IsIOError()) { |
| 242 | return io_error(); |
| 243 | } else if (s.IsTimedOut()) { |
| 244 | return transaction_too_old(); |
| 245 | } else { |
| 246 | return unknown_error(); |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | rocksdb::ColumnFamilyOptions getCFOptions() { |
| 251 | rocksdb::ColumnFamilyOptions options; |