mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Ignoring replica lag if no replicas present.
This commit is contained in:
parent
10b9d2e5dd
commit
ffa16517fe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue