establishConnection('w'); queryfx( $conn_w, 'DELETE FROM %T WHERE dateCreated < %d AND status != %s LIMIT 100', $table->getTableName(), time() - $ttl, PhabricatorDaemonLog::STATUS_RUNNING); return ($conn_w->getAffectedRows() == 100); } }