]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
objclass: provide new api for unique subop versioning
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 14 Mar 2013 17:32:00 +0000 (10:32 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 8 May 2013 17:55:51 +0000 (10:55 -0700)
commitfee51dd92140f17e8dcd07ed479a2a4051178880
tree775d32550d154862125e2f022db2d75015358d54
parent4feac81d8bc7ee307024e5824ef8854afc7d81e8
objclass: provide new api for unique subop versioning

We need to be able to generate a unique identifier for
each subop. This can be useful e.g., if we want to keep multiple
omap data entries indexed by the same key. The unique id
is being generated by the current object id and the current
osd subop count. For write operations it's unique.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/objclass/class_api.cc
src/objclass/objclass.h