]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: only request ack if AioComplete has an ack callback
authorSage Weil <sage@redhat.com>
Thu, 22 Sep 2016 15:07:32 +0000 (11:07 -0400)
committerSage Weil <sage@redhat.com>
Thu, 22 Sep 2016 18:35:28 +0000 (14:35 -0400)
commit8269159d2ab4c8fb6d187a9f9079d43ba8eca360
tree7af10f0eb49425a2a7d2864a7ecaab2cebb013fc
parente52e2653015288f4337d5729c0c9bbce1a404a13
librados: only request ack if AioComplete has an ack callback

Probalby no librados users are actually using the ack callback, but we are
still requesting an ack message from the OSD.  Only request it if the
AioCompletion has a callback defined for it.

This might make users who are no setting the callback but are install
polling the completion or using wait_for_complete() unhappy, but I don't
think they actually exist.  And even if they do, they are highly unlikely
to notice the difference given the way the OSDs are implemented.

Signed-off-by: Sage Weil <sage@redhat.com>
src/librados/AioCompletionImpl.h
src/librados/IoCtxImpl.cc