From 09489d395f1a1a8697594b3b56ceb9eb2262d671 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Fri, 24 Jan 2014 09:10:24 -0800 Subject: [PATCH] Fix a bug in DBImpl::CreateColumnFamily --- db/db_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_impl.cc b/db/db_impl.cc index c7992ec1c..6c63b3d59 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -2920,7 +2920,7 @@ std::vector DBImpl::MultiGet( Status DBImpl::CreateColumnFamily(const ColumnFamilyOptions& options, const std::string& column_family_name, ColumnFamilyHandle* handle) { - if (!versions_->GetColumnFamilySet()->Exists(column_family_name)) { + if (versions_->GetColumnFamilySet()->Exists(column_family_name)) { return Status::InvalidArgument("Column family already exists"); } VersionEdit edit;