Page MenuHomePhorge

D25318.1736768840.diff
No OneTemporary

D25318.1736768840.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
Mon, Jan 13, 11:47 (1 w, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1113189
Default Alt Text
D25318.1736768840.diff (582 B)

Event Timeline