| 354 | |
| 355 | private: |
| 356 | void NewDB() { |
| 357 | std::string name = test::TmpDir() + "/table_testdb"; |
| 358 | |
| 359 | Options options; |
| 360 | options.comparator = comparator_; |
| 361 | Status status = DestroyDB(name, options); |
| 362 | ASSERT_TRUE(status.ok()) << status.ToString(); |
| 363 | |
| 364 | options.create_if_missing = true; |
| 365 | options.error_if_exists = true; |
| 366 | options.write_buffer_size = 10000; // Something small to force merging |
| 367 | status = DB::Open(options, name, &db_); |
| 368 | ASSERT_TRUE(status.ok()) << status.ToString(); |
| 369 | } |
| 370 | |
| 371 | const Comparator* const comparator_; |
| 372 | DB* db_; |