]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ObjectStore: Don't use largest_data_off to calc data_align. 3954/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Mon, 27 Oct 2014 03:22:13 +0000 (11:22 +0800)
committerLoic Dachary <ldachary@redhat.com>
Wed, 11 Mar 2015 09:35:35 +0000 (10:35 +0100)
commitf4bab86fe3b218d66c14d06883c297836d9ca19d
treeac92f6f9728c4124def890278f07180106dce756
parentbaa74b88a4f4b6073b99b7a9774692b37405b59e
ObjectStore: Don't use largest_data_off to calc data_align.

If largest_data_off % CEPH_PAGE_SIZE != 0, the get_data_aligment return
a erro value. This make the FileJouranl::align_bl to memcopy much data.

Tested-by: Sage Weil <sage@redhat.com>
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit a1aa70f2f21339feabfe9c1b3c9c9f97fbd53c9d)
src/os/ObjectStore.h