Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/321871
Change subject: objectcache: Remove broken cas() method from WinCacheBagOStuff
......................................................................
objectcache: Remove broken cas() method from WinCacheBagOStuff
Bug: T120896
Change-Id: I9406a50df8e900b4fc5861c2174ba7a63a0dd765
(cherry picked from commit d1b53e32c7887ff0490aed1fdaeba0b93cd4bfeb)
---
M includes/libs/objectcache/WinCacheBagOStuff.php
1 file changed, 0 insertions(+), 13 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/71/321871/1
diff --git a/includes/libs/objectcache/WinCacheBagOStuff.php
b/includes/libs/objectcache/WinCacheBagOStuff.php
index 6996ce5..d84c959 100644
--- a/includes/libs/objectcache/WinCacheBagOStuff.php
+++ b/includes/libs/objectcache/WinCacheBagOStuff.php
@@ -29,16 +29,7 @@
*/
class WinCacheBagOStuff extends BagOStuff {
protected function doGet( $key, $flags = 0 ) {
- $casToken = null;
-
- return $this->getWithToken( $key, $casToken, $flags );
- }
-
- protected function getWithToken( $key, &$casToken, $flags = 0 ) {
$val = wincache_ucache_get( $key );
-
- $casToken = $val;
-
if ( is_string( $val ) ) {
$val = unserialize( $val );
}
@@ -52,10 +43,6 @@
/* wincache_ucache_set returns an empty array on success if
$value
was an array, bool otherwise */
return ( is_array( $result ) && $result === [] ) || $result;
- }
-
- protected function cas( $casToken, $key, $value, $exptime = 0 ) {
- return wincache_ucache_cas( $key, $casToken, serialize( $value
) );
}
public function delete( $key ) {
--
To view, visit https://gerrit.wikimedia.org/r/321871
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9406a50df8e900b4fc5861c2174ba7a63a0dd765
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: REL1_28
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits