aboutsummaryrefslogtreecommitdiff
path: root/zenserver/upstream/upstreamapply.cpp
diff options
context:
space:
mode:
authorJoe Kirchoff <[email protected]>2022-05-03 15:57:02 -0700
committerGitHub <[email protected]>2022-05-03 15:57:02 -0700
commit013e2c7ab88dc51d92d683e8f8ec488bdb4d08d9 (patch)
treea0ca3186204a4f7e7315962de2408082d3d723f3 /zenserver/upstream/upstreamapply.cpp
parentMerge pull request #87 from EpicGames/de/fix-compactcas-threadedinsert-test (diff)
downloadzen-1.0.1.2.tar.xz
zen-1.0.1.2.zip
Initialize upstream apply in background thread (#88)v1.0.1.2
Diffstat (limited to 'zenserver/upstream/upstreamapply.cpp')
-rw-r--r--zenserver/upstream/upstreamapply.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/zenserver/upstream/upstreamapply.cpp b/zenserver/upstream/upstreamapply.cpp
index 9758e7565..c397bb141 100644
--- a/zenserver/upstream/upstreamapply.cpp
+++ b/zenserver/upstream/upstreamapply.cpp
@@ -119,6 +119,22 @@ public:
return m_RunState.IsRunning;
}
+ virtual bool IsHealthy() const override
+ {
+ if (m_RunState.IsRunning)
+ {
+ for (const auto& Endpoint : m_Endpoints)
+ {
+ if (Endpoint->IsHealthy())
+ {
+ return true;
+ }
+ }
+ }
+
+ return false;
+ }
+
virtual void RegisterEndpoint(std::unique_ptr<UpstreamApplyEndpoint> Endpoint) override
{
m_Endpoints.emplace_back(std::move(Endpoint));
@@ -429,6 +445,12 @@ private:
//////////////////////////////////////////////////////////////////////////
+bool
+UpstreamApply::IsHealthy() const
+{
+ return false;
+}
+
std::unique_ptr<UpstreamApply>
UpstreamApply::Create(const UpstreamApplyOptions& Options, CasStore& CasStore, CidStore& CidStore)
{