diff --git a/db/db_impl/db_impl_write.cc b/db/db_impl/db_impl_write.cc index 39b03dc7e3a..cda2707ef16 100644 --- a/db/db_impl/db_impl_write.cc +++ b/db/db_impl/db_impl_write.cc @@ -205,7 +205,7 @@ Status DBImpl::IngestWBWI(std::shared_ptr wbwi, ColumnFamilySet* cf_set = versions_->GetColumnFamilySet(); // Create WBWIMemTables - for (const auto [cf_id, stat] : wbwi->GetCFStats()) { + for (const auto& [cf_id, stat] : wbwi->GetCFStats()) { ColumnFamilyData* cfd = cf_set->GetColumnFamily(cf_id); if (!cfd) { if (ignore_missing_cf) {