summaryrefslogtreecommitdiff
path: root/src/os/ObjectStore.h
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2012-03-05 21:41:49 -0800
committerSage Weil <sage.weil@dreamhost.com>2012-03-05 21:41:49 -0800
commitf43c3d958fe5c32ae647ffa715390ada51ae2650 (patch)
treed57fdfbe9883ef1d0ed7a79d7991db69399f805b /src/os/ObjectStore.h
parent5137f64ff75482078813cda8c676c6f7756e6a5a (diff)
downloadceph-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.h9
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);