Browse Source

Fix missing BITPOS in replication strategy.

Daniele Alessandri 10 years ago
parent
commit
c0d1a74447

+ 1 - 0
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'),

+ 3 - 1
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',