Skip to content

Commit

Permalink
Method to reply, finish stream and rpc actor. (ydb-platform#1429)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherednik authored and EgorkaZ committed Apr 8, 2024
1 parent dec9e00 commit 4ffba3f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ydb/core/grpc_services/query/rpc_execute_query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,12 @@ class TExecuteQueryRPC : public TActorBootstrapped<TExecuteQueryRPC> {
ReplyFinishStream(Ydb::StatusIds::INTERNAL_ERROR, issue);
}

void ReplySerializedAndFinishStream(Ydb::StatusIds::StatusCode status, TString&& buf) {
const auto finishStreamFlag = NYdbGrpc::IRequestContextBase::EStreamCtrl::FINISH;
Request_->SendSerializedResult(std::move(buf), status, finishStreamFlag);
this->PassAway();
}

void ReplyFinishStream(Ydb::StatusIds::StatusCode status, const NYql::TIssue& issue) {
google::protobuf::RepeatedPtrField<TYdbIssueMessageType> issuesMessage;
NYql::IssueToMessage(issue, issuesMessage.Add());
Expand Down

0 comments on commit 4ffba3f

Please sign in to comment.