Skip to content

Commit

Permalink
use std::move
Browse files Browse the repository at this point in the history
Co-authored-by: plat1ko <[email protected]>
  • Loading branch information
eldenmoon and platoneko authored Jul 12, 2023
1 parent c937224 commit 45b98ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/olap/storage_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ Status StorageEngine::get_compaction_status_json(std::string* result) {

void StorageEngine::add_quering_rowset(RowsetSharedPtr rs) {
std::lock_guard<std::mutex> lock(_quering_rowsets_mutex);
_querying_rowsets.emplace(rs->rowset_id(), rs);
_querying_rowsets.emplace(rs->rowset_id(), std::move(rs));
}

RowsetSharedPtr StorageEngine::get_quering_rowset(RowsetId rs_id) {
Expand Down

0 comments on commit 45b98ab

Please sign in to comment.