seastar::future<ceph::bufferptr> CyanStore::get_attr(CollectionRef c,
const ghobject_t& oid,
- std::string_view name)
+ std::string_view name) const
{
logger().debug("{} {} {}",
__func__, c->cid, oid);
uint32_t op_flags = 0) final;
seastar::future<ceph::bufferptr> get_attr(CollectionRef c,
const ghobject_t& oid,
- std::string_view name) final;
+ std::string_view name) const final;
seastar::future<attrs_t> get_attrs(CollectionRef c,
const ghobject_t& oid) final;
uint32_t op_flags = 0) = 0;
virtual seastar::future<ceph::bufferptr> get_attr(CollectionRef c,
const ghobject_t& oid,
- std::string_view name) = 0;
+ std::string_view name) const = 0;
using attrs_t = std::map<std::string, ceph::bufferptr, std::less<>>;
virtual seastar::future<attrs_t> get_attrs(CollectionRef c,
seastar::future<> PGBackend::getxattr(
const ObjectState& os,
- OSDOp& osd_op)
+ OSDOp& osd_op) const
{
std::string name;
ceph::bufferlist val;
seastar::future<ceph::bufferptr> PGBackend::getxattr(
const hobject_t& soid,
- std::string_view key)
+ std::string_view key) const
{
return store->get_attr(coll, ghobject_t{soid}, key);
}
ceph::os::Transaction& trans);
seastar::future<> getxattr(
const ObjectState& os,
- OSDOp& osd_op);
+ OSDOp& osd_op) const;
seastar::future<ceph::bufferptr> getxattr(
const hobject_t& soid,
- std::string_view key);
+ std::string_view key) const;
virtual void got_rep_op_reply(const MOSDRepOpReply&) {}