]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/rados/rados: do not pass prval from stack 23334/head
authorSage Weil <sage@redhat.com>
Mon, 30 Jul 2018 19:18:07 +0000 (14:18 -0500)
committerSage Weil <sage@redhat.com>
Tue, 31 Jul 2018 14:41:05 +0000 (09:41 -0500)
commit8e36f18cdeaa2088a6ce4aaad61b76283e777270
tree82988e626f8145d05242999f3c85aef7e236b2df
parent81df5d18c34a595c5d46b6ed975bc7be21953f31
pybind/rados/rados: do not pass prval from stack

The prval is a pointer to an int to write the final completion code of
the rados op.  This can't be on the stack since we immediately leave the
current scope after preparing the op (looong before we do the rados op).

We keep the tuple return value to avoid breaking users of this API
(devicehealth module, gnocchi at a minimum).

Fixes: http://tracker.ceph.com/issues/25175
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/rados/rados.pyx