File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
app/code/Magento/Indexer/Model Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,18 @@ public function reindexAllInvalid()
85
85
// Skip indexers having shared index that was already complete
86
86
$ sharedIndex = $ indexerConfig ['shared_index ' ] ?? null ;
87
87
if (!in_array ($ sharedIndex , $ this ->sharedIndexesComplete )) {
88
+ if (!empty ($ sharedIndex )) {
89
+ $ sharedIndexer = $ this ->indexerFactory ->create ()->load ($ sharedIndex );
90
+ if ($ sharedIndexer ->getView ()->isEnabled ()) {
91
+ $ sharedIndexer ->getView ()->suspend ();
92
+ }
93
+ }
88
94
$ indexer ->reindexAll ();
95
+ if (!empty ($ sharedIndex )) {
96
+ if ($ sharedIndexer ->getView ()->isEnabled ()) {
97
+ $ sharedIndexer ->getView ()->resume ();
98
+ }
99
+ }
89
100
90
101
if (!empty ($ sharedIndex ) && $ this ->makeSharedValid ->execute ($ sharedIndex )) {
91
102
$ this ->sharedIndexesComplete [] = $ sharedIndex ;
You can’t perform that action at this time.
0 commit comments