Skip to content

Commit

Permalink
put 3 std::move() back in play, two circle CI things disagree
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewvon committed Jan 21, 2025
1 parent f058b40 commit 3b750f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/db_impl/db_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1321,11 +1321,11 @@ Status DBImpl::FlushWAL(bool sync) {
// future writes
IOStatusCheck(io_s);
// whether sync or not, we should abort the rest of function upon error
return io_s;
return std::move(io_s);
}
if (!sync) {
ROCKS_LOG_DEBUG(immutable_db_options_.info_log, "FlushWAL sync=false");
return io_s;
return std::move(io_s);
}
}
if (!sync) {
Expand Down Expand Up @@ -1424,7 +1424,7 @@ Status DBImpl::LockWAL() {
// future writes
WriteStatusCheck(status);
}
return status;
return std::move(status);
}

Status DBImpl::UnlockWAL() {
Expand Down

0 comments on commit 3b750f5

Please sign in to comment.