diff options
-rw-r--r-- | RELEASE-NOTES-1.43 | 3 | ||||
-rw-r--r-- | includes/libs/objectcache/BagOStuff.php | 4 | ||||
-rw-r--r-- | includes/libs/objectcache/MediumSpecificBagOStuff.php | 8 |
3 files changed, 15 insertions, 0 deletions
diff --git a/RELEASE-NOTES-1.43 b/RELEASE-NOTES-1.43 index fc51bb55edb6..52dab00bdf2e 100644 --- a/RELEASE-NOTES-1.43 +++ b/RELEASE-NOTES-1.43 @@ -414,6 +414,9 @@ because of Phabricator reports. * SiteConfig::variants() has been deprecated; use ::variantsFor(). * ObjectCache::$instances and ::getInstance() have been deprecated; instead, use ObjectCacheFactory::getInstance(). +* BagOStuff::getSegmentationSize() and ::getSegmentedValueMaxSize() no longer + have any usage. The subclass' method in MediumSpecificBagOStuff overrides also + have no usage as well. * ApiTestCase::setExpectedApiException() has been deprecated; instead, use ::expectApiErrorCode() to test error codes instead of messages. * User::isBlockedGlobally(), deprecated since 1.40, now emits deprecation diff --git a/includes/libs/objectcache/BagOStuff.php b/includes/libs/objectcache/BagOStuff.php index 85da21bb3cee..96a79924c872 100644 --- a/includes/libs/objectcache/BagOStuff.php +++ b/includes/libs/objectcache/BagOStuff.php @@ -567,18 +567,22 @@ abstract class BagOStuff implements } /** + * @deprecated since 1.43, not used anywhere. * @return int|float The chunk size, in bytes, of segmented objects (INF for no limit) * @since 1.34 */ public function getSegmentationSize() { + wfDeprecated( __METHOD__, '1.43' ); return INF; } /** + * @deprecated since 1.43, not used anywhere. * @return int|float Maximum total segmented object size in bytes (INF for no limit) * @since 1.34 */ public function getSegmentedValueMaxSize() { + wfDeprecated( __METHOD__, '1.43' ); return INF; } diff --git a/includes/libs/objectcache/MediumSpecificBagOStuff.php b/includes/libs/objectcache/MediumSpecificBagOStuff.php index c169d3e2e1f7..6d4bd0fe2d95 100644 --- a/includes/libs/objectcache/MediumSpecificBagOStuff.php +++ b/includes/libs/objectcache/MediumSpecificBagOStuff.php @@ -988,11 +988,19 @@ abstract class MediumSpecificBagOStuff extends BagOStuff { return $this->attrMap[$flag] ?? self::QOS_UNKNOWN; } + /** + * @deprecated since 1.43, not used anywhere. + */ public function getSegmentationSize() { + wfDeprecated( __METHOD__, '1.43' ); return $this->segmentationSize; } + /** + * @deprecated since 1.43, not used anywhere. + */ public function getSegmentedValueMaxSize() { + wfDeprecated( __METHOD__, '1.43' ); return $this->segmentedValueMaxSize; } |