Skip to content

Fix background migrations failing with unused replication slot

Stan Hu requested to merge sh-handle-nil-replication-lag into master

When there is an unused replication slot, the replication lag function will return a nil value, resulting in "NoMethodError: undefined method `>=' for nil:NilClass" error. We now just ignore these nil values.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63666

Edited by Stan Hu

Merge request reports