Skip to content

Commit

Permalink
Update curvefs/src/client/warmup/warmup_manager.h
Browse files Browse the repository at this point in the history
fix

Co-authored-by: Hanqing Wu <10327590+wu-hanqing@users.noreply.github.com>
Signed-off-by: SiKu <Cyber-SiKu@outlook.com>
  • Loading branch information
Cyber-SiKu and wu-hanqing authored Feb 17, 2023
1 parent 126803f commit ffef139
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions curvefs/src/client/warmup/warmup_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,10 @@ class WarmupProgress {
total_ += add;
}

WarmupProgress &&operator=(const WarmupProgress &wp) {
WarmupProgress ret;
ret.total_ = wp.total_;
ret.finished_ = wp.finished_;
return std::move(ret);
WarmupProgress& operator=(const WarmupProgress &wp) {
total_ = wp.total_;
finished_ = wp.finished_;
return this;
}

void FinishedPlusOne() {
Expand Down

0 comments on commit ffef139

Please sign in to comment.