Page MenuHomePhorge

D25318.1734747016.diff
No OneTemporary

D25318.1734747016.diff

diff --git a/src/infrastructure/cluster/PhabricatorDatabaseRef.php b/src/infrastructure/cluster/PhabricatorDatabaseRef.php
--- a/src/infrastructure/cluster/PhabricatorDatabaseRef.php
+++ b/src/infrastructure/cluster/PhabricatorDatabaseRef.php
@@ -393,7 +393,7 @@
if ($is_replica) {
$latency = idx($replica_status, 'Seconds_Behind_Master');
- if (!strlen($latency)) {
+ if (!phutil_nonempty_string($latency)) {
$ref->setReplicaStatus(self::REPLICATION_NOT_REPLICATING);
} else {
$latency = (int)$latency;

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 02:10 (17 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1021624
Default Alt Text
D25318.1734747016.diff (582 B)

Event Timeline