]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Handle ineffective backup compression
authorTom Barron <tpb@dyncloud.net>
Thu, 7 May 2015 19:46:06 +0000 (15:46 -0400)
committerTom Barron <tpb@dyncloud.net>
Fri, 5 Jun 2015 13:56:09 +0000 (13:56 +0000)
commitfc5affbe757099011481678e74e0f19d5200424d
treedd028ea970375d6d37b083b220863fb0b6a97777
parente24ab4a9b1c53d50884668025722282347391543
Handle ineffective backup compression

Don't compress chunks when compressed length is not a gain over
original, uncompressed length.

With incremental backups, where chunks can be built from short
"extents", the likelihood of this situation has significantly
increased.

Closes-Bug: 1462268
Change-Id: Id960cb22ae74f19154f49a0c19ee07a00145067f
cinder/backup/chunkeddriver.py
cinder/tests/unit/backup/drivers/test_backup_nfs.py
cinder/tests/unit/test_backup_swift.py