]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd,osdc: eliminate FLAG_ONDISK and helpers 13570/head
authorSamuel Just <sjust@redhat.com>
Thu, 16 Feb 2017 21:22:07 +0000 (13:22 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 24 Feb 2017 19:27:02 +0000 (11:27 -0800)
commit0c0feca36d487e3a7d686d390fb7ccb431b6e119
tree2f2229775a6d7c44274dbbd8856ab86a749ab458
parent48cc5d2643769fbd5a0867d0dcbf9fa69212b56d
osd,osdc: eliminate FLAG_ONDISK and helpers

The objecter actually always needs to get a response in order to
be able to not continually resend ops (even if the caller didn't
provide a callback).  Thus, it makes no sense for an MOSDOp to
ever not have FLAG_ONDISK set.  Therefore, we'll just remove the
helper and assume it's always there (it's safe to send a response
the client didn't ask for, the error paths already do that).  On
the Objecter side, we'll just unconditionally fill in ONDISK for
the benefit of pre-luminous OSDs.

Fixes: http://tracker.ceph.com/issues/18961
Signed-off-by: Samuel Just <sjust@redhat.com>
src/messages/MOSDOp.h
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h
src/osdc/Objecter.cc