Lines Matching refs:db_
46 DB* db_; member in ROCKSDB_NAMESPACE::CorruptionTest
58 db_ = nullptr; in CorruptionTest()
68 delete db_; in ~CorruptionTest()
73 delete db_; in CloseDb()
74 db_ = nullptr; in CloseDb()
78 delete db_; in TryReopen()
79 db_ = nullptr; in TryReopen()
91 return DB::Open(opt, dbname_, &db_); in TryReopen()
99 delete db_; in RepairDB()
100 db_ = nullptr; in RepairDB()
109 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in Build()
116 ASSERT_OK(db_->Write(WriteOptions(), &batch)); in Build()
132 Iterator* iter = db_->NewIterator(ReadOptions(false, true)); in Check()
221 db_->GetLiveFilesMetaData(&metadata); in CorruptTableFileAtLevel()
235 if (db_->GetProperty(name, &property) && in Property()
306 s = db_->Write(WriteOptions(), &batch); in TEST_F()
320 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST_F()
343 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST_F()
377 dbi = static_cast<DBImpl*>(db_); in TEST_F()
390 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST_F()
397 dbi = reinterpret_cast<DBImpl*>(db_); in TEST_F()
415 ASSERT_OK(db_->Put(WriteOptions(), "foo", "v1")); in TEST_F()
416 ASSERT_OK(db_->Put(WriteOptions(), "foo", "v2")); in TEST_F()
417 ASSERT_OK(db_->Put(WriteOptions(), "foo", "v3")); in TEST_F()
418 ASSERT_OK(db_->Put(WriteOptions(), "foo", "v4")); in TEST_F()
419 ASSERT_OK(db_->Put(WriteOptions(), "foo", "v5")); in TEST_F()
423 ASSERT_OK(db_->Get(ReadOptions(), "foo", &v)); in TEST_F()
427 ASSERT_OK(db_->Put(WriteOptions(), "foo", "v6")); in TEST_F()
428 ASSERT_OK(db_->Get(ReadOptions(), "foo", &v)); in TEST_F()
431 ASSERT_OK(db_->Get(ReadOptions(), "foo", &v)); in TEST_F()
436 ASSERT_OK(db_->Put(WriteOptions(), "foo", "hello")); in TEST_F()
437 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST_F()
448 ASSERT_OK(db_->Get(ReadOptions(), "foo", &v)); in TEST_F()
456 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST_F()
478 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST_F()
493 dbi = reinterpret_cast<DBImpl*>(db_); in TEST_F()
508 s = db_->Put(WriteOptions(), Key(i, &tmp1), Value(i, &tmp2)); in TEST_F()
520 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST_F()
526 ASSERT_OK(db_->Put(WriteOptions(), Key(1000, &tmp1), Value(1000, &tmp2))); in TEST_F()
528 ASSERT_OK(db_->Get(ReadOptions(), Key(1000, &tmp1), &v)); in TEST_F()
531 ASSERT_OK(db_->Get(ReadOptions(), Key(1000, &tmp1), &v)); in TEST_F()
537 db_->DeleteRange(WriteOptions(), db_->DefaultColumnFamily(), "a", "b")); in TEST_F()
538 ASSERT_OK(db_->Flush(FlushOptions())); in TEST_F()
540 db_->GetLiveFilesMetaData(&metadata); in TEST_F()
570 ASSERT_OK(db_->Flush(FlushOptions())); in TEST_F()
571 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST_F()
577 delete db_; in TEST_F()
578 db_ = nullptr; in TEST_F()