Skip to content

Commit

Permalink
Apply comments
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Zhang <[email protected]>
  • Loading branch information
v01dstar committed Jan 3, 2024
1 parent 12aacd2 commit 83d2939
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions db/column_family.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 83d2939

Please sign in to comment.