]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: For WRITEFULL replica object, only truncate if new
authorJianpeng Ma <jianpeng.ma@intel.com>
Fri, 12 Jun 2015 06:56:41 +0000 (14:56 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Thu, 2 Jul 2015 00:18:16 +0000 (08:18 +0800)
commitdb1643d4b12ac67e1fca5765ae80001450f96147
tree64f9e0fc172e9f4acfa68828e128baaa2796d9a8
parentcb44cbd44009f7492c8f77f791d1257d3dda3391
osd/ReplicatedPG: For WRITEFULL replica object, only truncate if new
size less than old size(only truncate to new size)

If new size larger or equal old size, no need do truncate.
It can diretcly overwrite.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/osd/ReplicatedPG.cc