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
oxigraph-8.1.1
Igor Canadi 2 years ago committed by Facebook GitHub Bot
parent d053926fa2
commit ddde1e6af8
  1. 2
      db/db_impl/db_impl_open.cc

@ -216,7 +216,7 @@ Status ValidateOptionsByTable(
const DBOptions& db_opts, const DBOptions& db_opts,
const std::vector<ColumnFamilyDescriptor>& column_families) { const std::vector<ColumnFamilyDescriptor>& column_families) {
Status s; Status s;
for (auto cf : column_families) { for (auto& cf : column_families) {
s = ValidateOptions(db_opts, cf.options); s = ValidateOptions(db_opts, cf.options);
if (!s.ok()) { if (!s.ok()) {
return s; return s;

Loading…
Cancel
Save