return obc;
}
-ObjectContextRef PrimaryLogPG::get_object_context(const hobject_t& soid,
- bool can_create,
- map<string, bufferlist> *attrs)
+ObjectContextRef PrimaryLogPG::get_object_context(
+ const hobject_t& soid,
+ bool can_create,
+ const map<string, bufferlist> *attrs)
{
assert(
attrs || !pg_log.get_missing().is_missing(soid) ||
SnapSetContext *PrimaryLogPG::get_snapset_context(
const hobject_t& oid,
bool can_create,
- map<string, bufferlist> *attrs,
+ const map<string, bufferlist> *attrs,
bool oid_existed)
{
Mutex::Locker l(snapset_contexts_lock);
ObjectContextRef get_obc(
const hobject_t &hoid,
- map<string, bufferlist> &attrs) override {
+ const map<string, bufferlist> &attrs) override {
return get_object_context(hoid, true, &attrs);
}
void log_operation(
const vector<pg_log_entry_t> &logv,
- boost::optional<pg_hit_set_history_t> &hset_history,
+ const boost::optional<pg_hit_set_history_t> &hset_history,
const eversion_t &trim_to,
const eversion_t &roll_forward_to,
bool transaction_applied,
ObjectContextRef get_object_context(
const hobject_t& soid,
bool can_create,
- map<string, bufferlist> *attrs = 0
+ const map<string, bufferlist> *attrs = 0
);
void context_registry_on_change();
SnapSetContext *get_snapset_context(
const hobject_t& oid,
bool can_create,
- map<string, bufferlist> *attrs = 0,
+ const map<string, bufferlist> *attrs = 0,
bool oid_existed = true //indicate this oid whether exsited in backend
);
void register_snapset_context(SnapSetContext *ssc) {