aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxenoxeno <xeno@ydb.tech>2023-10-06 16:40:30 +0300
committerxenoxeno <xeno@ydb.tech>2023-10-06 17:50:12 +0300
commitabce6653da14c738a48f8703314aa8ad569e5bf9 (patch)
tree8547a51d238486bc471848c0bb51fb9d60393798
parent1370ebac9410eceed407b84db42d7cef328d0dfe (diff)
downloadydb-abce6653da14c738a48f8703314aa8ad569e5bf9.tar.gz
fixing crash after refactoring KIKIMR-19430
-rw-r--r--ydb/core/pgproxy/pg_proxy_events.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/ydb/core/pgproxy/pg_proxy_events.h b/ydb/core/pgproxy/pg_proxy_events.h
index 4c6c65991d..b93adf48e9 100644
--- a/ydb/core/pgproxy/pg_proxy_events.h
+++ b/ydb/core/pgproxy/pg_proxy_events.h
@@ -147,14 +147,12 @@ struct TEvPGEvents {
*/
struct TEvParseResponse : NActors::TEventLocal<TEvParseResponse, EvParseResponse> {
- std::unique_ptr<TPGParse> OriginalMessage;
std::vector<std::pair<char, TString>> ErrorFields;
std::vector<std::pair<char, TString>> NoticeFields;
TString Tag;
char TransactionStatus = 0;
- TEvParseResponse(std::unique_ptr<TPGParse> originalMessage)
- : OriginalMessage(std::move(originalMessage))
+ TEvParseResponse()
{}
};
@@ -166,16 +164,14 @@ struct TEvPGEvents {
{}
std::unique_ptr<TEvParseResponse> Reply() {
- return std::make_unique<TEvParseResponse>(std::move(Message));
+ return std::make_unique<TEvParseResponse>();
}
};
struct TEvBindResponse : NActors::TEventLocal<TEvBindResponse, EvBindResponse> {
- std::unique_ptr<TPGBind> OriginalMessage;
std::vector<std::pair<char, TString>> ErrorFields;
- TEvBindResponse(std::unique_ptr<TPGBind> originalMessage)
- : OriginalMessage(std::move(originalMessage))
+ TEvBindResponse()
{}
};
@@ -187,7 +183,7 @@ struct TEvPGEvents {
{}
std::unique_ptr<TEvBindResponse> Reply() {
- return std::make_unique<TEvBindResponse>(std::move(Message));
+ return std::make_unique<TEvBindResponse>();
}
};