Skip to content

Commit

Permalink
BUGFIX: Don't break on large number of indices
Browse files Browse the repository at this point in the history
  • Loading branch information
c4ll-m3-j4ck committed Apr 8, 2021
1 parent 2eff368 commit 207fa97
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Classes/Synchronizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,12 @@ private function compileAndRunCloneScript(PresetConfiguration $remoteConfigurati
'elasticDumpPath' => $this->elasticDumpPath,
]);

$script = $view->render();
passthru($script);
$tmpFilePath = Files::concatenatePaths([$this->environment->getPathToTemporaryDirectory(),'elastic_sync']);
file_put_contents($tmpFilePath, $view->render());
chmod($tmpFilePath, 0777);

passthru($tmpFilePath);
unlink($tmpFilePath);
}

/**
Expand Down

0 comments on commit 207fa97

Please sign in to comment.