Lines Matching refs:vstorage_

42   std::unique_ptr<VersionStorageInfo> vstorage_;  member in ROCKSDB_NAMESPACE::CompactionPickerTest
59 vstorage_(nullptr) { in CompactionPickerTest()
76 vstorage_.reset(new VersionStorageInfo(&icmp_, ucmp_, options_.num_levels, in NewVersionStorage()
78 vstorage_->CalculateBaseBytes(ioptions_, mutable_cf_options_); in NewVersionStorage()
82 vstorage_.reset(); in DeleteVersionStorage()
92 assert(level < vstorage_->num_levels()); in Add()
102 vstorage_->AddFile(level, f); in Add()
119 assert(level < vstorage_->num_levels()); in AddToCompactionFiles()
125 vstorage_->CalculateBaseBytes(ioptions_, mutable_cf_options_); in UpdateVersionStorageInfo()
126 vstorage_->UpdateFilesByCompactionPri(ioptions_.compaction_pri); in UpdateVersionStorageInfo()
127 vstorage_->UpdateNumNonEmptyLevels(); in UpdateVersionStorageInfo()
128 vstorage_->GenerateFileIndexer(); in UpdateVersionStorageInfo()
129 vstorage_->GenerateLevelFilesBrief(); in UpdateVersionStorageInfo()
130 vstorage_->ComputeCompactionScore(ioptions_, mutable_cf_options_); in UpdateVersionStorageInfo()
131 vstorage_->GenerateLevel0NonOverlapping(); in UpdateVersionStorageInfo()
132 vstorage_->ComputeFilesMarkedForCompaction(); in UpdateVersionStorageInfo()
133 vstorage_->SetFinalized(); in UpdateVersionStorageInfo()
141 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
152 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
165 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
178 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
196 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
227 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
242 uint64_t file_size = vstorage_->MaxBytesForLevel(level) * 2 / kFileCount; in TEST_F()
252 ASSERT_EQ(vstorage_->CompactionScoreLevel(0), level); in TEST_F()
253 ASSERT_EQ(level_compaction_picker.NeedsCompaction(vstorage_.get()), in TEST_F()
254 vstorage_->CompactionScore(0) >= 1); in TEST_F()
274 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
295 ASSERT_EQ(vstorage_->base_level(), num_levels - 2); in TEST_F()
298 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
320 ASSERT_EQ(vstorage_->base_level(), num_levels - 3); in TEST_F()
323 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
349 ASSERT_EQ(vstorage_->base_level(), num_levels - 3); in TEST_F()
352 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
384 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
401 ASSERT_EQ(universal_compaction_picker.NeedsCompaction(vstorage_.get()), in TEST_F()
412 ASSERT_EQ(level_compaction_picker.NeedsCompaction(vstorage_.get()), in TEST_F()
413 vstorage_->CompactionScore(0) >= 1); in TEST_F()
425 ASSERT_EQ(universal_compaction_picker.NeedsCompaction(vstorage_.get()), in TEST_F()
441 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
459 ASSERT_EQ(universal_compaction_picker.NeedsCompaction(vstorage_.get()), in TEST_F()
475 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
501 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
525 vstorage_->TEST_AddFileMarkedForPeriodicCompaction(4, file_map_[3].first); in TEST_F()
529 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
555 vstorage_->TEST_AddFileMarkedForPeriodicCompaction(0, file_map_[1].first); in TEST_F()
559 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
581 vstorage_->TEST_AddFileMarkedForPeriodicCompaction(0, file_map_[1].first); in TEST_F()
585 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
611 vstorage_->TEST_AddFileMarkedForPeriodicCompaction(0, file_map_[2].first); in TEST_F()
615 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
631 vstorage_->TEST_AddFileMarkedForPeriodicCompaction(0, file_map_[6].first); in TEST_F()
635 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
655 vstorage_->TEST_AddFileMarkedForPeriodicCompaction(4, file_map_[6].first); in TEST_F()
659 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
680 ASSERT_EQ(fifo_compaction_picker.NeedsCompaction(vstorage_.get()), false); in TEST_F()
692 ASSERT_EQ(fifo_compaction_picker.NeedsCompaction(vstorage_.get()), in TEST_F()
693 vstorage_->CompactionScore(0) >= 1); in TEST_F()
719 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
751 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
778 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
807 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
828 vstorage_->LevelFiles(2)[3]->being_compacted = true; in TEST_F()
829 vstorage_->LevelFiles(0)[0]->marked_for_compaction = true; in TEST_F()
834 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
851 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
870 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
897 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
927 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
945 vstorage_->LevelFiles(2)[2]->being_compacted = true; in TEST_F()
950 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
965 vstorage_->LevelFiles(1)[0]->marked_for_compaction = true; in TEST_F()
966 vstorage_->LevelFiles(1)[1]->marked_for_compaction = true; in TEST_F()
971 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
991 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1019 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1051 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1091 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1129 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1163 ASSERT_EQ(0, vstorage_->CompactionScoreLevel(0)); in TEST_F()
1164 ASSERT_EQ(1, vstorage_->CompactionScoreLevel(1)); in TEST_F()
1166 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1193 ASSERT_EQ(0, vstorage_->CompactionScoreLevel(0)); in TEST_F()
1194 ASSERT_EQ(1, vstorage_->CompactionScoreLevel(1)); in TEST_F()
1196 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1226 ASSERT_EQ(1, vstorage_->CompactionScoreLevel(0)); in TEST_F()
1227 ASSERT_EQ(0, vstorage_->CompactionScoreLevel(1)); in TEST_F()
1229 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1263 vstorage_->estimated_compaction_needed_bytes()); in TEST_F()
1290 ASSERT_EQ(1400u + 3000u, vstorage_->estimated_compaction_needed_bytes()); in TEST_F()
1313 ASSERT_EQ(10000u + 18000u, vstorage_->estimated_compaction_needed_bytes()); in TEST_F()
1346 vstorage_->estimated_compaction_needed_bytes()); in TEST_F()
1363 Compaction::TEST_IsBottommostLevel(2, vstorage_.get(), input_files_); in TEST_F()
1382 result = Compaction::TEST_IsBottommostLevel(2, vstorage_.get(), input_files_); in TEST_F()
1401 result = Compaction::TEST_IsBottommostLevel(2, vstorage_.get(), input_files_); in TEST_F()
1424 result = Compaction::TEST_IsBottommostLevel(2, vstorage_.get(), input_files_); in TEST_F()
1447 result = Compaction::TEST_IsBottommostLevel(2, vstorage_.get(), input_files_); in TEST_F()
1463 result = Compaction::TEST_IsBottommostLevel(2, vstorage_.get(), input_files_); in TEST_F()
1479 result = Compaction::TEST_IsBottommostLevel(2, vstorage_.get(), input_files_); in TEST_F()
1501 result = Compaction::TEST_IsBottommostLevel(2, vstorage_.get(), input_files_); in TEST_F()
1523 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1547 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1576 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1597 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1622 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1628 ASSERT_EQ(2, vstorage_->NextCompactionIndex(1 /* level */)); in TEST_F()
1631 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1637 ASSERT_EQ(3, vstorage_->NextCompactionIndex(1 /* level */)); in TEST_F()
1640 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1642 ASSERT_EQ(4, vstorage_->NextCompactionIndex(1 /* level */)); in TEST_F()
1661 vstorage_->LevelFiles(1)[0]->being_compacted = true; in TEST_F()
1665 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1691 vstorage_->LevelFiles(1)[0]->being_compacted = true; in TEST_F()
1695 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_)); in TEST_F()
1722 vstorage_->LevelFiles(0)[5]->being_compacted = true; in TEST_F()
1723 vstorage_->LevelFiles(1)[0]->being_compacted = true; in TEST_F()
1727 cf_name_, mutable_cf_options_, vstorage_.get(), &log_buffer_, 107)); in TEST_F()