Clustered connections should use IConnectionSingle::executeCommand() to execute commands internally.

This commit is contained in:
Daniele Alessandri
2011-03-05 10:45:47 +01:00
parent 99c8acfc8c
commit 3681c1e622
+1 -3
View File
@@ -73,8 +73,6 @@ class ConnectionCluster implements IConnectionCluster, \IteratorAggregate {
}
public function executeCommand(ICommand $command) {
$connection = $this->getConnection($command);
$connection->writeCommand($command);
return $connection->readResponse($command);
return $this->getConnection($command)->executeCommand($command);
}
}