Skip to content

Commit

Permalink
⏫ Forwardport of magento#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:
  - magento#12877: [2.2.1] Magento Database Backup Command Fails (Fix included) (reported by @azeemism)
  • Loading branch information
magento-engcom-team authored and coderimus committed Jan 29, 2018
1 parent 58f5f5e commit ae5d86e
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 ae5d86e

Please sign in to comment.