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.

This commit is contained in:
Daniele Alessandri
2009-12-25 22:04:24 +01:00
parent e5c3123d88
commit 6e39491692
+1 -1
View File
@@ -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);
}
}