Skip to content

Commit c82e959

Browse files
msotheeswaran-scJohnSully
authored andcommitted
compile fixes for ubuntu 22.04 arm
1 parent 82233aa commit c82e959

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

deps/rocksdb/db/db_impl/db_impl_compaction_flush.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ Status DBImpl::CompactFilesImpl(
10661066
}
10671067

10681068
if (output_file_names != nullptr) {
1069-
for (const auto newf : c->edit()->GetNewFiles()) {
1069+
for (const auto& newf : c->edit()->GetNewFiles()) {
10701070
(*output_file_names)
10711071
.push_back(TableFileName(c->immutable_cf_options()->cf_paths,
10721072
newf.second.fd.GetNumber(),
@@ -1158,7 +1158,7 @@ void DBImpl::NotifyOnCompactionBegin(ColumnFamilyData* cfd, Compaction* c,
11581158
}
11591159
}
11601160
}
1161-
for (const auto newf : c->edit()->GetNewFiles()) {
1161+
for (const auto& newf : c->edit()->GetNewFiles()) {
11621162
info.output_files.push_back(TableFileName(
11631163
c->immutable_cf_options()->cf_paths, newf.second.fd.GetNumber(),
11641164
newf.second.fd.GetPathId()));

deps/rocksdb/options/options_parser.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ Status RocksDBOptionsParser::EndSection(
409409
return s;
410410
}
411411
} else if (section == kOptionSectionVersion) {
412-
for (const auto pair : opt_map) {
412+
for (const auto& pair : opt_map) {
413413
if (pair.first == "rocksdb_version") {
414414
s = ParseVersionNumber(pair.first, pair.second, 3, db_version);
415415
if (!s.ok()) {

0 commit comments

Comments
 (0)