Lines Matching refs:db_
69 ASSERT_OK(db_->DisableFileDeletions()); in TEST_F()
74 ASSERT_OK(db_->DisableFileDeletions()); in TEST_F()
79 ASSERT_OK(db_->DisableFileDeletions()); in TEST_F()
84 ASSERT_OK(db_->EnableFileDeletions(false)); in TEST_F()
89 ASSERT_OK(db_->EnableFileDeletions()); in TEST_F()
129 db_->Put(WriteOptions(), handle, RandomString(&rnd, kKeySize), in TEST_F()
139 db_->GetIntProperty(handle, DB::Properties::kSizeAllMemTables, &value)); in TEST_F()
142 ASSERT_TRUE(db_->GetAggregatedIntProperty(DB::Properties::kSizeAllMemTables, in TEST_F()
147 ASSERT_FALSE(db_->GetAggregatedIntProperty(DB::Properties::kDBStats, &value)); in TEST_F()
152 ASSERT_TRUE(db_->GetAggregatedIntProperty( in TEST_F()
156 db_->Flush(FlushOptions(), handle); in TEST_F()
158 ASSERT_TRUE(db_->GetAggregatedIntProperty( in TEST_F()
302 db_->Put(WriteOptions(), std::to_string(++key), "foo"); in TEST_F()
304 db_->Flush(FlushOptions()); in TEST_F()
344 ManagedSnapshot snapshot(db_); in TEST_F()
349 db_->Put(WriteOptions(), RandomString(&rnd, kKeySize), in TEST_F()
353 db_->Delete(WriteOptions(), RandomString(&rnd, kKeySize)); in TEST_F()
356 db_->Merge(WriteOptions(), RandomString(&rnd, kKeySize), in TEST_F()
363 db_->DeleteRange(WriteOptions(), db_->DefaultColumnFamily(), start, end); in TEST_F()
365 db_->Flush(FlushOptions()); in TEST_F()
368 db_->GetProperty(DB::Properties::kAggregatedTableProperties, &property); in TEST_F()
457 std::unique_ptr<Iterator> iter(db_->NewIterator(ReadOptions())); in TEST_F()
541 ManagedSnapshot snapshot(db_); in TEST_F()
549 db_->Put(WriteOptions(), RandomString(&rnd, kKeySize), in TEST_F()
553 db_->Delete(WriteOptions(), RandomString(&rnd, kKeySize)); in TEST_F()
556 db_->Merge(WriteOptions(), RandomString(&rnd, kKeySize), in TEST_F()
563 db_->DeleteRange(WriteOptions(), db_->DefaultColumnFamily(), start, end); in TEST_F()
565 db_->Flush(FlushOptions()); in TEST_F()
566 db_->CompactRange(CompactRangeOptions(), nullptr, nullptr); in TEST_F()
569 db_->GetProperty( in TEST_F()
584 db_->GetProperty(DB::Properties::kAggregatedTableProperties, &tp_string); in TEST_F()
938 iters.push_back(db_->NewIterator(ReadOptions())); in TEST_F()
1183 db_->Put(WriteOptions(), ToString(table * 100 + i), "val"); in TEST_F()
1185 db_->Flush(FlushOptions()); in TEST_F()
1189 ASSERT_OK(db_->GetPropertiesOfAllTables(&props)); in TEST_F()
1316 std::unique_ptr<Iterator> iter(db_->NewIterator(ReadOptions())); in TEST_F()
1338 std::unique_ptr<Iterator> iter(db_->NewIterator(ReadOptions())); in TEST_F()
1394 std::unique_ptr<Iterator> iter(db_->NewIterator(ReadOptions())); in TEST_F()
1532 bool ok = db_->GetIntProperty(DB::Properties::kTotalSstFilesSize, &sst_size); in TEST_F()
1537 ASSERT_OK(db_->CompactRange(CompactRangeOptions(), nullptr, nullptr)); in TEST_F()
1558 db_->GetIntProperty(DB::Properties::kMinObsoleteSstNumberToKeep, in TEST_F()
1566 void SetDB(DB* db) { db_ = db; } in TEST_F()
1576 DB* db_ = nullptr; in TEST_F() member in ROCKSDB_NAMESPACE::TEST_F::TestListener
1587 listener->SetDB(db_); in TEST_F()
1608 db_->GetIntProperty(DB::Properties::kBlockCacheCapacity, &value)); in TEST_F()
1609 ASSERT_FALSE(db_->GetIntProperty(DB::Properties::kBlockCacheUsage, &value)); in TEST_F()
1611 db_->GetIntProperty(DB::Properties::kBlockCachePinnedUsage, &value)); in TEST_F()
1616 db_->GetIntProperty(DB::Properties::kBlockCacheCapacity, &value)); in TEST_F()
1617 ASSERT_FALSE(db_->GetIntProperty(DB::Properties::kBlockCacheUsage, &value)); in TEST_F()
1619 db_->GetIntProperty(DB::Properties::kBlockCachePinnedUsage, &value)); in TEST_F()
1627 db_->GetIntProperty(DB::Properties::kBlockCacheCapacity, &value)); in TEST_F()
1628 ASSERT_FALSE(db_->GetIntProperty(DB::Properties::kBlockCacheUsage, &value)); in TEST_F()
1630 db_->GetIntProperty(DB::Properties::kBlockCachePinnedUsage, &value)); in TEST_F()
1643 ASSERT_TRUE(db_->GetIntProperty(DB::Properties::kBlockCacheCapacity, &value)); in TEST_F()
1645 ASSERT_TRUE(db_->GetIntProperty(DB::Properties::kBlockCacheUsage, &value)); in TEST_F()
1648 db_->GetIntProperty(DB::Properties::kBlockCachePinnedUsage, &value)); in TEST_F()
1654 ASSERT_TRUE(db_->GetIntProperty(DB::Properties::kBlockCacheCapacity, &value)); in TEST_F()
1656 ASSERT_TRUE(db_->GetIntProperty(DB::Properties::kBlockCacheUsage, &value)); in TEST_F()
1659 db_->GetIntProperty(DB::Properties::kBlockCachePinnedUsage, &value)); in TEST_F()
1668 ASSERT_TRUE(db_->GetIntProperty(DB::Properties::kBlockCacheCapacity, &value)); in TEST_F()
1670 ASSERT_TRUE(db_->GetIntProperty(DB::Properties::kBlockCacheUsage, &value)); in TEST_F()
1673 db_->GetIntProperty(DB::Properties::kBlockCachePinnedUsage, &value)); in TEST_F()
1682 ASSERT_TRUE(db_->GetIntProperty(DB::Properties::kBlockCacheCapacity, &value)); in TEST_F()
1684 ASSERT_TRUE(db_->GetIntProperty(DB::Properties::kBlockCacheUsage, &value)); in TEST_F()
1688 db_->GetIntProperty(DB::Properties::kBlockCachePinnedUsage, &value)); in TEST_F()
1694 ASSERT_TRUE(db_->GetIntProperty(DB::Properties::kBlockCacheCapacity, &value)); in TEST_F()
1696 ASSERT_TRUE(db_->GetIntProperty(DB::Properties::kBlockCacheUsage, &value)); in TEST_F()
1700 db_->GetIntProperty(DB::Properties::kBlockCachePinnedUsage, &value)); in TEST_F()