]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: set result=0 for successful writes
authorSage Weil <sage@redhat.com>
Thu, 5 Sep 2019 16:07:42 +0000 (11:07 -0500)
committerSage Weil <sage@redhat.com>
Thu, 5 Sep 2019 17:01:30 +0000 (12:01 -0500)
commit8550ceff79887d319ea91df5646562793e7bfe9e
treecb8b9076bafd0e4c364c015685e56eddb4551dbb
parent336b6b66ca672cb26fac09aeffbf10cdedb58ab1
osd/PrimaryLogPG: set result=0 for successful writes

This is currently being set for *all* write returns in execute_ctx(), but
that behavior will change soon.  Each of these write methods is a bit
different, so it is tedious to audit, so I'm going with simple: everywhere
we do ++ctx->num_write, we also set result=0, and let the error paths
set errors if/when it is appropriate.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PrimaryLogPG.cc