return operate(oid, &op, NULL);
}
-int librados::IoCtxImpl::create(const object_t& oid, bool exclusive,
- const std::string& category)
-{
- ::ObjectOperation op;
- prepare_assert_ops(&op);
- op.create(exclusive, category);
- return operate(oid, &op, NULL);
-}
-
/*
* add any version assert operations that are appropriate given the
* stat in the IoCtx, either the target version assert or any src
int list(Objecter::ListContext *context, int max_entries);
uint32_t list_seek(Objecter::ListContext *context, uint32_t pos);
int create(const object_t& oid, bool exclusive);
- int create(const object_t& oid, bool exclusive, const std::string& category);
int write(const object_t& oid, bufferlist& bl, size_t len, uint64_t off);
int append(const object_t& oid, bufferlist& bl, size_t len);
int write_full(const object_t& oid, bufferlist& bl);
o->create(exclusive);
}
-void librados::ObjectWriteOperation::create(bool exclusive, const std::string& category)
+void librados::ObjectWriteOperation::create(bool exclusive,
+ const std::string& category) // unused
{
::ObjectOperation *o = (::ObjectOperation *)impl;
- o->create(exclusive, category);
+ o->create(exclusive);
}
void librados::ObjectWriteOperation::write(uint64_t off, const bufferlist& bl)
return io_ctx_impl->create(obj, exclusive);
}
-int librados::IoCtx::create(const std::string& oid, bool exclusive, const std::string& category)
+int librados::IoCtx::create(const std::string& oid, bool exclusive,
+ const std::string& category) // unused
{
object_t obj(oid);
- return io_ctx_impl->create(obj, exclusive, category);
+ return io_ctx_impl->create(obj, exclusive);
}
int librados::IoCtx::write(const std::string& oid, bufferlist& bl, size_t len, uint64_t off)
extern "C" void rados_write_op_create(rados_write_op_t write_op,
int exclusive,
- const char* category)
+ const char* category) // unused
{
- tracepoint(librados, rados_write_op_create_enter, write_op, exclusive, category);
+ tracepoint(librados, rados_write_op_create_enter, write_op, exclusive);
::ObjectOperation *oo = (::ObjectOperation *) write_op;
- if(category) {
- oo->create(exclusive, category);
- } else {
- oo->create(!!exclusive);
- }
+ oo->create(!!exclusive);
tracepoint(librados, rados_write_op_create_exit);
}
OSDOp& o = add_op(CEPH_OSD_OP_CREATE);
o.op.flags = (excl ? CEPH_OSD_OP_FLAG_EXCL : 0);
}
- void create(bool excl, const string& category) {
- OSDOp& o = add_op(CEPH_OSD_OP_CREATE);
- o.op.flags = (excl ? CEPH_OSD_OP_FLAG_EXCL : 0);
- ::encode(category, o.indata);
- }
struct C_ObjectOperation_stat : public Context {
bufferlist bl;
TRACEPOINT_EVENT(librados, rados_write_op_create_enter,
TP_ARGS(
rados_write_op_t, op,
- int, exclusive,
- const char*, category),
+ int, exclusive),
TP_FIELDS(
ctf_integer_hex(rados_write_op_t, op, op)
ctf_integer(int, exclusive, exclusive)
- ceph_ctf_string(category, category)
)
)