Skip to content

Commit 13a2afc

Browse files
committed
Fix linter
1 parent a223b9e commit 13a2afc

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

db/compaction/compaction_picker_universal.cc

+2-10
Original file line numberDiff line numberDiff line change
@@ -321,22 +321,14 @@ SmallestKeyHeap create_level_heap(Compaction* c, const Comparator* ucmp) {
321321
SmallestKeyHeap smallest_key_priority_q =
322322
SmallestKeyHeap(SmallestKeyHeapComparator(ucmp));
323323

324-
InputFileInfo input_file;
325-
326324
for (size_t l = 0; l < c->num_input_levels(); l++) {
327325
if (c->num_input_files(l) != 0) {
328326
if (l == 0 && c->start_level() == 0) {
329327
for (size_t i = 0; i < c->num_input_files(0); i++) {
330-
input_file.f = c->input(0, i);
331-
input_file.level = 0;
332-
input_file.index = i;
333-
smallest_key_priority_q.push(std::move(input_file));
328+
smallest_key_priority_q.emplace(c->input(0, i), 0, i);
334329
}
335330
} else {
336-
input_file.f = c->input(l, 0);
337-
input_file.level = l;
338-
input_file.index = 0;
339-
smallest_key_priority_q.push(std::move(input_file));
331+
smallest_key_priority_q.emplace(c->input(l, 0), l, 0);
340332
}
341333
}
342334
}

0 commit comments

Comments
 (0)