diff --git a/src/Appwrite/Platform/Tasks/Restore.php b/src/Appwrite/Platform/Tasks/Restore.php index 79d10684c6..3bd3b57a9f 100644 --- a/src/Appwrite/Platform/Tasks/Restore.php +++ b/src/Appwrite/Platform/Tasks/Restore.php @@ -138,7 +138,7 @@ class Restore extends Action 'xbstream -x < ' . $file, '--decompress', '--decompress-threads=' . $this->processors, - '--parallel=' . intval($this->processors / 2), + '--parallel=' . $this->processors, '-C ' . $target, ]; @@ -166,7 +166,7 @@ class Restore extends Action $args = [ 'xtrabackup', '--prepare', - '--parallel=' . intval($this->processors / 2), + '--parallel=' . $this->processors, '--strict', '--target-dir=' . $target, '2> ' . $logfile, @@ -198,7 +198,7 @@ class Restore extends Action 'xtrabackup', '--move-back', '--strict', - '--parallel=' . intval($this->processors / 2), + '--parallel=' . $this->processors, '--target-dir=' . $target, '--datadir=' . $datadir, '2> ' . $logfile,