From ddde1e6af824a81d7dcc6d42b349d637933e10dd Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Fri, 3 Mar 2023 20:55:31 -0800 Subject: [PATCH] Avoid ColumnFamilyDescriptor copy (#10978) Summary: Hi. :) Noticed we are copying ColumnFamilyDescriptor here because my process crashed during copy constructor (cause unrelated) Pull Request resolved: https://github.com/facebook/rocksdb/pull/10978 Reviewed By: cbi42 Differential Revision: D41473924 Pulled By: ajkr fbshipit-source-id: 58a3473f2d7b24918f79d4b2726c20081c5e95b4 --- db/db_impl/db_impl_open.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_impl/db_impl_open.cc b/db/db_impl/db_impl_open.cc index 510fb189b68..94f36e86298 100644 --- a/db/db_impl/db_impl_open.cc +++ b/db/db_impl/db_impl_open.cc @@ -216,7 +216,7 @@ Status ValidateOptionsByTable( const DBOptions& db_opts, const std::vector& column_families) { Status s; - for (auto cf : column_families) { + for (auto& cf : column_families) { s = ValidateOptions(db_opts, cf.options); if (!s.ok()) { return s;