Skip to content

Commit

Permalink
Merge forwardport of #13066 to 2.3-develop branch
Browse files Browse the repository at this point in the history
Applied pull request patch https://github.com/magento/magento2/pull/13066.patch (created by @jagritijoshi) based on commit(s):
  1. bc434c1

Fixed GitHub Issues in 2.3-develop branch:
  - #12877: [2.2.1] Magento Database Backup Command Fails (Fix included) (reported by @azeemism)
  • Loading branch information
magento-engcom-team authored Jan 24, 2018
2 parents ba1d05a + a0cb9e2 commit 6fb29ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Backup/Model/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function createBackup(\Magento\Framework\Backup\Db\BackupInterface $backu

if ($tableStatus->getDataLength() > self::BUFFER_LENGTH) {
if ($tableStatus->getAvgRowLength() < self::BUFFER_LENGTH) {
$limit = floor(self::BUFFER_LENGTH / $tableStatus->getAvgRowLength());
$limit = floor(self::BUFFER_LENGTH / max($tableStatus->getAvgRowLength(), 1));
$multiRowsLength = ceil($tableStatus->getRows() / $limit);
} else {
$limit = 1;
Expand Down

0 comments on commit 6fb29ac

Please sign in to comment.