diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2012-03-05 21:41:49 -0800 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2012-03-05 21:41:49 -0800 |
commit | f43c3d958fe5c32ae647ffa715390ada51ae2650 (patch) | |
tree | d57fdfbe9883ef1d0ed7a79d7991db69399f805b /src/os/ObjectStore.h | |
parent | 5137f64ff75482078813cda8c676c6f7756e6a5a (diff) | |
download | ceph-f43c3d958fe5c32ae647ffa715390ada51ae2650.tar.gz |
objectstore: OP_COLL_MOVE
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Diffstat (limited to 'src/os/ObjectStore.h')
-rw-r--r-- | src/os/ObjectStore.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index bab912108fa..35f8a832338 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -124,6 +124,7 @@ public: OP_COLL_SETATTR = 24, // cid, attrname, bl OP_COLL_RMATTR = 25, // cid, attrname OP_COLL_SETATTRS = 26, // cid, attrset + OP_COLL_MOVE = 8, // newcid, oldcid, oid OP_STARTSYNC = 27, // start a sync @@ -415,6 +416,14 @@ public: ::encode(oid, tbl); ops++; } + void collection_move(coll_t cid, coll_t oldcid, const hobject_t& oid) { + __u32 op = OP_COLL_MOVE; + ::encode(op, tbl); + ::encode(cid, tbl); + ::encode(oid, tbl); + ops++; + } + void collection_setattr(coll_t cid, const char* name, bufferlist& val) { string n(name); collection_setattr(cid, n, val); |