Browse Source

Changed the returned string used to hash a Connection instance when using a cluster of connections. IMPORTANT NOTE: if you are using a version of Predis older than this commit, then this change will surely have an impact on your existing partitioned data as it changes the distribution of server nodes over the ring.

Daniele Alessandri 15 years ago
parent
commit
6e39491692
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -593,7 +593,7 @@ class Connection implements IConnection {
     }
 
     public function __toString() {
-        return sprintf('tcp://%s:%d/', $this->_params->host, $this->_params->port);
+        return sprintf('%s:%d', $this->_params->host, $this->_params->port);
     }
 }