Page MenuHomePhabricator

D4026.diff
No OneTemporary

D4026.diff

diff --git a/services/lib/src/client-base-reactors/ClientBidiReactorBase.h b/services/lib/src/client-base-reactors/ClientBidiReactorBase.h
--- a/services/lib/src/client-base-reactors/ClientBidiReactorBase.h
+++ b/services/lib/src/client-base-reactors/ClientBidiReactorBase.h
@@ -16,7 +16,8 @@
template <class Request, class Response>
class ClientBidiReactorBase : public grpc::ClientBidiReactor<Request, Response>,
public BaseReactor {
- std::shared_ptr<ReactorStatusHolder> statusHolder;
+ std::shared_ptr<ReactorStatusHolder> statusHolder =
+ std::make_shared<ReactorStatusHolder>();
std::shared_ptr<Response> response = nullptr;
void nextWrite();
diff --git a/services/lib/src/client-base-reactors/ClientReadReactorBase.h b/services/lib/src/client-base-reactors/ClientReadReactorBase.h
--- a/services/lib/src/client-base-reactors/ClientReadReactorBase.h
+++ b/services/lib/src/client-base-reactors/ClientReadReactorBase.h
@@ -15,7 +15,8 @@
template <class Request, class Response>
class ClientReadReactorBase : public grpc::ClientReadReactor<Response>,
public BaseReactor {
- std::shared_ptr<ReactorStatusHolder> statusHolder;
+ std::shared_ptr<ReactorStatusHolder> statusHolder =
+ std::make_shared<ReactorStatusHolder>();
Response response;
public:
diff --git a/services/lib/src/client-base-reactors/ClientWriteReactorBase.h b/services/lib/src/client-base-reactors/ClientWriteReactorBase.h
--- a/services/lib/src/client-base-reactors/ClientWriteReactorBase.h
+++ b/services/lib/src/client-base-reactors/ClientWriteReactorBase.h
@@ -14,7 +14,8 @@
template <class Request, class Response>
class ClientWriteReactorBase : public grpc::ClientWriteReactor<Request>,
public BaseReactor {
- std::shared_ptr<ReactorStatusHolder> statusHolder;
+ std::shared_ptr<ReactorStatusHolder> statusHolder =
+ std::make_shared<ReactorStatusHolder>();
Request request;
void nextWrite();
diff --git a/services/lib/src/server-base-reactors/ServerBidiReactorBase.h b/services/lib/src/server-base-reactors/ServerBidiReactorBase.h
--- a/services/lib/src/server-base-reactors/ServerBidiReactorBase.h
+++ b/services/lib/src/server-base-reactors/ServerBidiReactorBase.h
@@ -31,7 +31,8 @@
template <class Request, class Response>
class ServerBidiReactorBase : public grpc::ServerBidiReactor<Request, Response>,
public BaseReactor {
- std::shared_ptr<ReactorStatusHolder> statusHolder;
+ std::shared_ptr<ReactorStatusHolder> statusHolder =
+ std::make_shared<ReactorStatusHolder>();
Request request;
Response response;
diff --git a/services/lib/src/server-base-reactors/ServerReadReactorBase.h b/services/lib/src/server-base-reactors/ServerReadReactorBase.h
--- a/services/lib/src/server-base-reactors/ServerReadReactorBase.h
+++ b/services/lib/src/server-base-reactors/ServerReadReactorBase.h
@@ -20,7 +20,8 @@
template <class Request, class Response>
class ServerReadReactorBase : public grpc::ServerReadReactor<Request>,
public BaseReactor {
- std::shared_ptr<ReactorStatusHolder> statusHolder;
+ std::shared_ptr<ReactorStatusHolder> statusHolder =
+ std::make_shared<ReactorStatusHolder>();
Request request;
protected:
diff --git a/services/lib/src/server-base-reactors/ServerWriteReactorBase.h b/services/lib/src/server-base-reactors/ServerWriteReactorBase.h
--- a/services/lib/src/server-base-reactors/ServerWriteReactorBase.h
+++ b/services/lib/src/server-base-reactors/ServerWriteReactorBase.h
@@ -20,7 +20,7 @@
template <class Request, class Response>
class ServerWriteReactorBase : public grpc::ServerWriteReactor<Response>,
public BaseReactor {
- std::shared_ptr<ReactorStatusHolder> statusHolder;
+ std::shared_ptr<ReactorStatusHolder> statusHolder = std::make_shared<ReactorStatusHolder>();
Response response;
bool initialized = false;

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 6:03 AM (12 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2704031
Default Alt Text
D4026.diff (3 KB)

Event Timeline