Merge "Implement makeKeyInternal() for ReplicatedBagOStuff/MultiWriteBagOStuff"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 11 Jul 2018 05:00:44 +0000 (05:00 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 11 Jul 2018 05:00:44 +0000 (05:00 +0000)
includes/libs/objectcache/MultiWriteBagOStuff.php
includes/libs/objectcache/ReplicatedBagOStuff.php

index fd45024..64bfa95 100644 (file)
@@ -250,6 +250,10 @@ class MultiWriteBagOStuff extends BagOStuff {
                return $ret;
        }
 
+       public function makeKeyInternal( $keyspace, $args ) {
+               return $this->caches[0]->makeKeyInternal( ...func_get_args() );
+       }
+
        public function makeKey( $class, $component = null ) {
                return $this->caches[0]->makeKey( ...func_get_args() );
        }
index 1c14f7c..f2c3732 100644 (file)
@@ -129,6 +129,10 @@ class ReplicatedBagOStuff extends BagOStuff {
                $this->readStore->clearLastError();
        }
 
+       public function makeKeyInternal( $keyspace, $args ) {
+               return $this->writeStore->makeKeyInternal( ...func_get_args() );
+       }
+
        public function makeKey( $class, $component = null ) {
                return $this->writeStore->makeKey( ...func_get_args() );
        }