Skip to content

Commit 6fb29ac

Browse files
Merge forwardport of #13066 to 2.3-develop branch
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)
2 parents ba1d05a + a0cb9e2 commit 6fb29ac

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Backup/Model

1 file changed

+1
-1
lines changed

app/code/Magento/Backup/Model/Db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function createBackup(\Magento\Framework\Backup\Db\BackupInterface $backu
154154

155155
if ($tableStatus->getDataLength() > self::BUFFER_LENGTH) {
156156
if ($tableStatus->getAvgRowLength() < self::BUFFER_LENGTH) {
157-
$limit = floor(self::BUFFER_LENGTH / $tableStatus->getAvgRowLength());
157+
$limit = floor(self::BUFFER_LENGTH / max($tableStatus->getAvgRowLength(), 1));
158158
$multiRowsLength = ceil($tableStatus->getRows() / $limit);
159159
} else {
160160
$limit = 1;

0 commit comments

Comments
 (0)