Ignoring replica lag if no replicas present.

This commit is contained in:
Samuel Clay 2012-09-19 23:00:19 -07:00
parent 10b9d2e5dd
commit ffa16517fe

View file

@ -16,6 +16,6 @@ def mongo_max_replication_lag(connection):
oldest_secondary_optime = optime.time
if not primary_optime or not oldest_secondary_optime:
return
return 0
return primary_optime - oldest_secondary_optime