Lines Matching refs:db_
33 DB* db_; member in leveldb::CorruptionTest
42 db_ = NULL; in CorruptionTest()
49 delete db_; in ~CorruptionTest()
55 delete db_; in TryReopen()
56 db_ = NULL; in TryReopen()
57 return DB::Open(options_, dbname_, &db_); in TryReopen()
65 delete db_; in RepairDB()
66 db_ = NULL; in RepairDB()
84 ASSERT_OK(db_->Write(options, &batch)); in Build()
95 Iterator* iter = db_->NewIterator(ReadOptions()); in Check()
179 if (db_->GetProperty(name, &property) && in Property()
228 s = db_->Write(WriteOptions(), &batch); in TEST()
238 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST()
252 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST()
265 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST()
281 ASSERT_OK(db_->Put(WriteOptions(), "foo", "v1")); in TEST()
282 ASSERT_OK(db_->Put(WriteOptions(), "foo", "v2")); in TEST()
283 ASSERT_OK(db_->Put(WriteOptions(), "foo", "v3")); in TEST()
284 ASSERT_OK(db_->Put(WriteOptions(), "foo", "v4")); in TEST()
285 ASSERT_OK(db_->Put(WriteOptions(), "foo", "v5")); in TEST()
289 ASSERT_OK(db_->Get(ReadOptions(), "foo", &v)); in TEST()
293 ASSERT_OK(db_->Put(WriteOptions(), "foo", "v6")); in TEST()
294 ASSERT_OK(db_->Get(ReadOptions(), "foo", &v)); in TEST()
297 ASSERT_OK(db_->Get(ReadOptions(), "foo", &v)); in TEST()
302 ASSERT_OK(db_->Put(WriteOptions(), "foo", "hello")); in TEST()
303 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST()
314 ASSERT_OK(db_->Get(ReadOptions(), "foo", &v)); in TEST()
320 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST()
337 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST()
350 Status s = db_->Put(WriteOptions(), Key(5, &tmp1), Value(5, &tmp2)); in TEST()
356 DBImpl* dbi = reinterpret_cast<DBImpl*>(db_); in TEST()
361 ASSERT_OK(db_->Put(WriteOptions(), Key(1000, &tmp1), Value(1000, &tmp2))); in TEST()
363 ASSERT_OK(db_->Get(ReadOptions(), Key(1000, &tmp1), &v)); in TEST()
366 ASSERT_OK(db_->Get(ReadOptions(), Key(1000, &tmp1), &v)); in TEST()