Merge "Made getMaxLag() skip checking the master DB"