Remove unnecessary else
This commit is contained in:
parent
18423ce34d
commit
c1d0fddaac
@ -1010,10 +1010,10 @@ msgs::ReadResponses ShardRsm::HandleRead(msgs::ScanVerticesRequest &&req) {
|
|||||||
msgs::ReadResponses ShardRsm::HandleRead(msgs::ExpandOneRequest &&req) {
|
msgs::ReadResponses ShardRsm::HandleRead(msgs::ExpandOneRequest &&req) {
|
||||||
if (!req.order_by.empty()) {
|
if (!req.order_by.empty()) {
|
||||||
return HandleReadWithOrderBy(std::move(req), shard_->Access(req.transaction_id));
|
return HandleReadWithOrderBy(std::move(req), shard_->Access(req.transaction_id));
|
||||||
} else {
|
} else
|
||||||
|
|
||||||
return HandleReadWithoutOrderBy(std::move(req), shard_->Access(req.transaction_id));
|
return HandleReadWithoutOrderBy(std::move(req), shard_->Access(req.transaction_id));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
msgs::WriteResponses ShardRsm::ApplyWrite(msgs::CommitRequest &&req) {
|
msgs::WriteResponses ShardRsm::ApplyWrite(msgs::CommitRequest &&req) {
|
||||||
shard_->Access(req.transaction_id).Commit(req.commit_timestamp);
|
shard_->Access(req.transaction_id).Commit(req.commit_timestamp);
|
||||||
|
Loading…
Reference in New Issue
Block a user