Skip to content

Commit

Permalink
compaction_job_test.cc: fix unnecessary object copy
Browse files Browse the repository at this point in the history
  • Loading branch information
rockeet committed Sep 1, 2024
1 parent 92ad4a8 commit 31d78aa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions db/compaction/compaction_job_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,8 @@ class CompactionJobTestBase : public testing::Test {
SequenceNumber smallest_seqno = kMaxSequenceNumber;
SequenceNumber largest_seqno = 0;
uint64_t oldest_blob_file_number = kInvalidBlobFileNumber;
for (const auto& kv : contents) {
for (const auto& [skey, value] : contents) {
ParsedInternalKey key;
std::string skey;
std::string value;
std::tie(skey, value) = kv;
const Status pik_status =
ParseInternalKey(skey, &key, true /* log_err_key */);

Expand Down

0 comments on commit 31d78aa

Please sign in to comment.