diff --git a/src/Replication/ReplicationStrategy.php b/src/Replication/ReplicationStrategy.php index 87f1d267..70c7a7a5 100644 --- a/src/Replication/ReplicationStrategy.php +++ b/src/Replication/ReplicationStrategy.php @@ -227,6 +227,7 @@ class ReplicationStrategy 'QUIT' => true, 'OBJECT' => true, 'BITCOUNT' => true, + 'BITPOS' => true, 'TIME' => true, 'PFCOUNT' => true, 'SORT' => array($this, 'isSortReadOnly'), diff --git a/tests/Predis/Replication/ReplicationStrategyTest.php b/tests/Predis/Replication/ReplicationStrategyTest.php index 6735b4c0..f89ebf69 100644 --- a/tests/Predis/Replication/ReplicationStrategyTest.php +++ b/tests/Predis/Replication/ReplicationStrategyTest.php @@ -245,7 +245,6 @@ class ReplicationStrategyTest extends PredisTestCase 'ECHO' => 'read', 'QUIT' => 'read', 'OBJECT' => 'read', - 'BITCOUNT' => 'read', 'TIME' => 'read', 'SHUTDOWN' => 'disallowed', 'INFO' => 'disallowed', @@ -281,6 +280,9 @@ class ReplicationStrategyTest extends PredisTestCase 'DECRBY' => 'write', 'GET' => 'read', 'GETBIT' => 'read', + 'BITCOUNT' => 'read', + 'BITPOS' => 'read', + 'BITOP' => 'write', 'MGET' => 'read', 'SET' => 'write', 'GETRANGE' => 'read',