summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--geo-replication/syncdaemon/gsyncdstatus.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/geo-replication/syncdaemon/gsyncdstatus.py b/geo-replication/syncdaemon/gsyncdstatus.py
index a49b9c23dea..7268e26d629 100644
--- a/geo-replication/syncdaemon/gsyncdstatus.py
+++ b/geo-replication/syncdaemon/gsyncdstatus.py
@@ -310,6 +310,15 @@ class GeorepStatus(object):
if data["worker_status"] not in ["Active", "Passive"]:
data["slave_node"] = DEFAULT_STATUS
+ if data["last_synced_utc"] == 0:
+ data["last_synced_utc"] = DEFAULT_STATUS
+
+ if data["checkpoint_completion_time_utc"] == 0:
+ data["checkpoint_completion_time_utc"] = DEFAULT_STATUS
+
+ if data["checkpoint_time_utc"] == 0:
+ data["checkpoint_time_utc"] = DEFAULT_STATUS
+
return data
def print_status(self, checkpoint_time=0):