]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: do not set data/omap digest blindly
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 30 Sep 2017 08:49:20 +0000 (16:49 +0800)
committerDavid Zafman <dzafman@redhat.com>
Thu, 31 May 2018 17:58:42 +0000 (10:58 -0700)
commitc1ffd63692024f810f22e99fad3ae53de12b259e
treec5d8aa7a521a6cdf1f217c0657de489cad38b64e
parent51c205873c41efbd0438680441fdff2be375a442
osd/PrimaryLogPG: do not set data/omap digest blindly

As bluestore has bulitin csum, we generally no longer generate
object data digest for now. The consequence is that we should
handle data/omap digest more carefully to make certain ops,
such as copy_from/promote, to work properly since they heavily
relies on data digest for data transfer correctness.

Example of failure:
http://pulpito.ceph.com/xxg-2017-09-30_11:46:34-rbd-master-distro-basic-mira/1690609/

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit be078c8b7b131764caa28bc44452b8c5c2339623)

Conflicts:
src/osd/PrimaryLogPG.cc (still have snapdir)
src/osd/PG.cc
src/osd/PG.h
src/osd/PGBackend.cc
src/osd/PGBackend.h
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h