From c0d1a744477fb361c6e5af26589e66bca02bfc43 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Thu, 23 Jul 2015 11:30:32 +0200 Subject: [PATCH] Fix missing BITPOS in replication strategy. --- src/Replication/ReplicationStrategy.php | 1 + tests/Predis/Replication/ReplicationStrategyTest.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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',