summaryrefslogtreecommitdiffstats
path: root/src/os/Transaction.cc
diff options
context:
space:
mode:
authorJianpeng Ma <jianpeng.ma@intel.com>2018-09-19 14:45:17 +0200
committerJianpeng Ma <jianpeng.ma@intel.com>2018-11-19 09:38:42 +0100
commit22f73ba62eb1fe337622ea2aefdcd829f8def851 (patch)
tree20989b9881487c1904315eece4f570937cf2fe57 /src/os/Transaction.cc
parentMerge PR #24490 into master (diff)
downloadceph-22f73ba62eb1fe337622ea2aefdcd829f8def851.tar.xz
ceph-22f73ba62eb1fe337622ea2aefdcd829f8def851.zip
os/objectstore: add new op OP_CREATE for create a new object.
For OP_CREATE in bluestore mean node didn't exist, so skip search form kvdb. Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Diffstat (limited to 'src/os/Transaction.cc')
-rw-r--r--src/os/Transaction.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/os/Transaction.cc b/src/os/Transaction.cc
index ad390a1c3ee..e0c2b7b26ac 100644
--- a/src/os/Transaction.cc
+++ b/src/os/Transaction.cc
@@ -19,6 +19,16 @@ void ObjectStore::Transaction::dump(ceph::Formatter *f)
case Transaction::OP_NOP:
f->dump_string("op_name", "nop");
break;
+ case Transaction::OP_CREATE:
+ {
+ coll_t cid = i.get_cid(op->cid);
+ ghobject_t oid = i.get_oid(op->oid);
+ f->dump_string("op_name", "create");
+ f->dump_stream("collection") << cid;
+ f->dump_stream("oid") << oid;
+ }
+ break;
+
case Transaction::OP_TOUCH:
{
coll_t cid = i.get_cid(op->cid);