Skip to content

Commit 19220cf

Browse files
committed
Fix files that had unintentional differences
1 parent 2cebd62 commit 19220cf

File tree

6 files changed

+2
-11
lines changed

6 files changed

+2
-11
lines changed

db/db_compaction_test.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3308,7 +3308,6 @@ TEST_P(DBCompactionTestWithParam, IntraL0Compaction) {
33083308
ASSERT_OK(Put(Key(i + 1), value));
33093309
}
33103310
ASSERT_OK(Flush());
3311-
ASSERT_EQ(i + 1, TestGetTickerCount(options, BLOCK_CACHE_INDEX_MISS));
33123311
}
33133312
dbfull()->TEST_WaitForCompact();
33143313
ROCKSDB_NAMESPACE::SyncPoint::GetInstance()->DisableProcessing();

options/db_options.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ struct ImmutableDBOptions {
3535
std::vector<DbPath> db_paths;
3636
std::string db_log_dir;
3737
std::string wal_dir;
38-
uint32_t max_subcompactions;
3938
size_t max_log_file_size;
4039
size_t log_file_time_to_roll;
4140
size_t keep_log_file_num;

options/options_settable_test.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,6 @@ TEST_F(OptionsSettableTest, ColumnFamilyOptionsAllFieldsSettable) {
508508

509509
ColumnFamilyOptions rnd_filled_options = *new_options;
510510

511-
ColumnFamilyOptions rnd_filled_options = *new_options;
512-
513511
options->~ColumnFamilyOptions();
514512
new_options->~ColumnFamilyOptions();
515513

table/block_fetcher.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,6 @@ inline void BlockFetcher::GetBlockContents() {
205205
CopyBufferToCompressedBuf();
206206
heap_buf_ = std::move(compressed_buf_);
207207
}
208-
} else if (direct_io_buf_.get() != nullptr) {
209-
if (compression_type_ == kNoCompression) {
210-
CopyBufferToHeapBuf();
211-
} else {
212-
CopyBufferToCompressedBuf();
213-
heap_buf_ = std::move(compressed_buf_);
214-
}
215208
}
216209
*contents_ = BlockContents(std::move(heap_buf_), block_size_);
217210
}

test_util/testutil.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ size_t GetLinesCount(const std::string& fname, const std::string& pattern) {
475475
return count;
476476
}
477477

478+
478479
void CorruptFile(const std::string& fname, int offset, int bytes_to_corrupt) {
479480
struct stat sbuf;
480481
if (stat(fname.c_str(), &sbuf) != 0) {

test_util/testutil.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,7 @@ size_t GetLinesCount(const std::string& fname, const std::string& pattern);
800800
// Tries to set TEST_TMPDIR to a directory supporting direct IO.
801801
void ResetTmpDirForDirectIO();
802802

803+
803804
void CorruptFile(const std::string& fname, int offset, int bytes_to_corrupt);
804805

805806
} // namespace test

0 commit comments

Comments
 (0)