so something like atomic compare/swap?
On Mon, Sep 30, 2019 at 1:22 PM Yehuda Sadeh-Weinraub <yehuda(a)redhat.com>
wrote:
On Sat, Sep 28, 2019 at 9:55 AM Sage Weil
<sweil(a)redhat.com> wrote:
This just merged:
https://github.com/ceph/ceph/pull/30581
which means that it's possible to construct cls methods that do updates
*and* return >0 return codes and (limited) data payload. You need to set
the WRITEVEC flag on the rados op for it to work, in order to avoid
breaking current users of requests like [stat, write] or [cmpxattr,
write], since those guard methods occasionally return data.
Enjoy!
Finally!
Next iteration should be to look at current objclass users and
identify places that can take advantage of this. I know that for rgw
the otp objclass can surely benefit for it, and we may want to take a
look at the entire versioned objects stuff. I'm sure there are many
other places where this can be useful.
Thanks,
Yehuda
sage
_______________________________________________
Dev mailing list -- dev(a)ceph.io
To unsubscribe send an email to dev-leave(a)ceph.io