diff --git a/db/column_family.cc b/db/column_family.cc index f3f1f6c22df..76eac06a417 100644 --- a/db/column_family.cc +++ b/db/column_family.cc @@ -51,12 +51,12 @@ ColumnFamilyHandleImpl::ColumnFamilyHandleImpl( } ColumnFamilyHandleImpl::ColumnFamilyHandleImpl(ColumnFamilyHandleImpl&& other) { - other.cfd_ = cfd_; - other.db_ = db_; - other.mutex_ = mutex_; - cfd_ = nullptr; - db_ = nullptr; - mutex_ = nullptr; + cfd_ = other.cfd_; + db_ = other.db_; + mutex_ = other.mutex_; + other.cfd_ = nullptr; + other.db_ = nullptr; + other.mutex_ = nullptr; } ColumnFamilyHandleImpl::~ColumnFamilyHandleImpl() {