Skip to content

Commit cb79e52

Browse files
committed
Avoid exposing a visible change to Mview/View.
1 parent 839c27d commit cb79e52

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/Mview

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Mview/View.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class View extends \Magento\Framework\DataObject implements ViewInterface
2424
/**
2525
* Max versions to load from database at a time
2626
*/
27-
const MAX_VERSION_QUERY_BATCH = 100000;
27+
private static $maxVersionQueryBatch = 100000;
2828

2929
/**
3030
* @var string
@@ -277,7 +277,7 @@ public function update()
277277
try {
278278
$this->getState()->setStatus(View\StateInterface::STATUS_WORKING)->save();
279279

280-
$versionBatchSize = self::MAX_VERSION_QUERY_BATCH;
280+
$versionBatchSize = self::$maxVersionQueryBatch;
281281
$batchSize = isset($this->changelogBatchSize[$this->getChangelog()->getViewId()])
282282
? $this->changelogBatchSize[$this->getChangelog()->getViewId()]
283283
: self::DEFAULT_BATCH_SIZE;

0 commit comments

Comments
 (0)