Fix a bug in DBImpl::CreateColumnFamily

main
Igor Canadi 11 years ago
parent 7c5e583a27
commit 09489d395f
  1. 2
      db/db_impl.cc

@ -2920,7 +2920,7 @@ std::vector<Status> 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;

Loading…
Cancel
Save