super_header() : magic(0), version(0), header_size(0), footer_size(0) { }
void encode(bufferlist& bl) const {
- ::encode(magic, bl);
- ::encode(version, bl);
- ::encode(header_size, bl);
- ::encode(footer_size, bl);
+ using ceph::encode;
+ encode(magic, bl);
+ encode(version, bl);
+ encode(header_size, bl);
+ encode(footer_size, bl);
}
void decode(bufferlist::iterator& bl) {
- ::decode(magic, bl);
- ::decode(version, bl);
- ::decode(header_size, bl);
- ::decode(footer_size, bl);
+ using ceph::decode;
+ decode(magic, bl);
+ decode(version, bl);
+ decode(header_size, bl);
+ decode(footer_size, bl);
}
};
void encode(bufferlist& bl) const {
uint32_t debug_type = (type << 24) | (type << 16) | shortmagic;
ENCODE_START(1, 1, bl);
- ::encode(debug_type, bl);
- ::encode(size, bl);
+ encode(debug_type, bl);
+ encode(size, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator& bl) {
uint32_t debug_type;
DECODE_START(1, bl);
- ::decode(debug_type, bl);
+ decode(debug_type, bl);
type = debug_type >> 24;
- ::decode(size, bl);
+ decode(size, bl);
DECODE_FINISH(bl);
}
};
void encode(bufferlist& bl) const {
ENCODE_START(1, 1, bl);
- ::encode(magic, bl);
+ encode(magic, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator& bl) {
DECODE_START(1, bl);
- ::decode(magic, bl);
+ decode(magic, bl);
DECODE_FINISH(bl);
}
};
// shard will be NO_SHARD for a replicated pool. This means
// that we allow the decode by struct_v 2.
ENCODE_START(3, 2, bl);
- ::encode(pgid.pgid, bl);
- ::encode(superblock, bl);
- ::encode(pgid.shard, bl);
+ encode(pgid.pgid, bl);
+ encode(superblock, bl);
+ encode(pgid.shard, bl);
ENCODE_FINISH(bl);
}
// NOTE: New super_ver prevents decode from ver 1
void decode(bufferlist::iterator& bl) {
DECODE_START(3, bl);
- ::decode(pgid.pgid, bl);
+ decode(pgid.pgid, bl);
if (struct_v > 1) {
- ::decode(superblock, bl);
+ decode(superblock, bl);
}
if (struct_v > 2) {
- ::decode(pgid.shard, bl);
+ decode(pgid.shard, bl);
} else {
pgid.shard = shard_id_t::NO_SHARD;
}
// pool. This means we will allow the decode by struct_v 1.
void encode(bufferlist& bl) const {
ENCODE_START(3, 1, bl);
- ::encode(hoid.hobj, bl);
- ::encode(hoid.generation, bl);
- ::encode(hoid.shard_id, bl);
- ::encode(oi, bl, -1); /* FIXME: we always encode with full features */
+ encode(hoid.hobj, bl);
+ encode(hoid.generation, bl);
+ encode(hoid.shard_id, bl);
+ encode(oi, bl, -1); /* FIXME: we always encode with full features */
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator& bl) {
DECODE_START(3, bl);
- ::decode(hoid.hobj, bl);
+ decode(hoid.hobj, bl);
if (struct_v > 1) {
- ::decode(hoid.generation, bl);
- ::decode(hoid.shard_id, bl);
+ decode(hoid.generation, bl);
+ decode(hoid.shard_id, bl);
} else {
hoid.generation = ghobject_t::NO_GEN;
hoid.shard_id = shard_id_t::NO_SHARD;
}
if (struct_v > 2) {
- ::decode(oi, bl);
+ decode(oi, bl);
}
DECODE_FINISH(bl);
}
void encode(bufferlist& bl) const {
ENCODE_START(1, 1, bl);
- ::encode(offset, bl);
- ::encode(len, bl);
- ::encode(databl, bl);
+ encode(offset, bl);
+ encode(len, bl);
+ encode(databl, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator& bl) {
DECODE_START(1, bl);
- ::decode(offset, bl);
- ::decode(len, bl);
- ::decode(databl, bl);
+ decode(offset, bl);
+ decode(len, bl);
+ decode(databl, bl);
DECODE_FINISH(bl);
}
};
void encode(bufferlist& bl) const {
ENCODE_START(1, 1, bl);
- ::encode(data, bl);
+ encode(data, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator& bl) {
DECODE_START(1, bl);
- ::decode(data, bl);
+ decode(data, bl);
DECODE_FINISH(bl);
}
};
void encode(bufferlist& bl) const {
ENCODE_START(1, 1, bl);
- ::encode(hdr, bl);
+ encode(hdr, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator& bl) {
DECODE_START(1, bl);
- ::decode(hdr, bl);
+ decode(hdr, bl);
DECODE_FINISH(bl);
}
};
void encode(bufferlist& bl) const {
ENCODE_START(1, 1, bl);
- ::encode(omap, bl);
+ encode(omap, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator& bl) {
DECODE_START(1, bl);
- ::decode(omap, bl);
+ decode(omap, bl);
DECODE_FINISH(bl);
}
};
void encode(bufferlist& bl) const {
ENCODE_START(6, 6, bl);
- ::encode(struct_ver, bl);
- ::encode(map_epoch, bl);
- ::encode(info, bl);
- ::encode(log, bl);
- ::encode(past_intervals, bl);
+ encode(struct_ver, bl);
+ encode(map_epoch, bl);
+ encode(info, bl);
+ encode(log, bl);
+ encode(past_intervals, bl);
// Equivalent to osdmap.encode(bl, features); but
// preserving exact layout for CRC checking.
bl.append(osdmap_bl);
- ::encode(divergent_priors, bl);
- ::encode(missing, bl);
+ encode(divergent_priors, bl);
+ encode(missing, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator& bl) {
DECODE_START(6, bl);
- ::decode(struct_ver, bl);
- ::decode(map_epoch, bl);
- ::decode(info, bl);
- ::decode(log, bl);
+ decode(struct_ver, bl);
+ decode(map_epoch, bl);
+ decode(info, bl);
+ decode(log, bl);
if (struct_v >= 6) {
- ::decode(past_intervals, bl);
+ decode(past_intervals, bl);
} else if (struct_v > 1) {
cout << "NOTICE: Older export with classic past_intervals" << std::endl;
} else {
cout << "WARNING: Older export without OSDMap information" << std::endl;
}
if (struct_v > 3) {
- ::decode(divergent_priors, bl);
+ decode(divergent_priors, bl);
}
if (struct_v > 4) {
- ::decode(missing, bl);
+ decode(missing, bl);
}
DECODE_FINISH(bl);
}
}
std::string my_val = *i;
++i;
- ::encode(my_val, caps[my_key]);
+ encode(my_val, caps[my_key]);
} else if (ceph_argparse_flag(args, i, "-p", "--print-key", (char*)NULL)) {
print_key = true;
} else if (ceph_argparse_flag(args, i, "-C", "--create-keyring", (char*)NULL)) {
if (r >= 0) {
try {
bufferlist::iterator iter = bl.begin();
- ::decode(keyring, iter);
+ decode(keyring, iter);
} catch (const buffer::error &err) {
cerr << "error reading file " << fn << std::endl;
exit(1);
if (r >= 0) {
try {
bufferlist::iterator iter = obl.begin();
- ::decode(other, iter);
+ decode(other, iter);
} catch (const buffer::error &err) {
cerr << "error reading file " << import_keyring << std::endl;
exit(1);
std::string val;
if (cf.read("global", key_names[i], val) == 0) {
bufferlist bl;
- ::encode(val, bl);
+ encode(val, bl);
string s(key_names[i]);
caps[s] = bl;
}
std::cerr << "error reading version: " << errstr << std::endl;
return 1;
}
- ::encode(v, val);
+ encode(v, val);
} else if (subcmd == "in") {
int ret = val.read_file(argv[7], &errstr);
if (ret < 0 || !errstr.empty()) {
}
bufferlist::iterator bliter = bl.begin();
uint8_t ver, ver2;
- ::decode(ver, bliter);
- ::decode(ver2, bliter);
+ decode(ver, bliter);
+ decode(ver2, bliter);
uint32_t len;
- ::decode(len, bliter);
+ decode(len, bliter);
r = bl.read_fd(fd, len);
if (r < 0) {
std::cerr << "Got error: " << cpp_strerror(r) << " on read_fd"
bufferlist pg_bl = i->value();
pg_stat_t ps;
bufferlist::iterator p = pg_bl.begin();
- ::decode(ps, p);
+ decode(ps, p);
// will update the last_epoch_clean of all the pgs.
pg_stat[pgid] = ps;
}
bufferlist dirty_pgs;
for (ceph::unordered_map<pg_t, pg_stat_t>::iterator ps = pg_stat.begin();
ps != pg_stat.end(); ++ps) {
- ::encode(ps->first, dirty_pgs);
+ encode(ps->first, dirty_pgs);
if (!can_be_trimmed) {
ps->second.last_epoch_clean = first;
}
- ::encode(ps->second, dirty_pgs);
+ encode(ps->second, dirty_pgs);
}
utime_t inc_stamp = ceph_clock_now();
- ::encode(inc_stamp, trans_bl);
+ encode(inc_stamp, trans_bl);
::encode_destructively(dirty_pgs, trans_bl);
bufferlist dirty_osds;
- ::encode(dirty_osds, trans_bl);
+ encode(dirty_osds, trans_bl);
txn->put("pgmap", ++ver, trans_bl);
// update the db in batch
if (txn->size() > 1024) {
bufferlist bl;
__u8 v = 1;
- ::encode(v, bl);
+ encode(v, bl);
for (const auto& k : keyring.get_keys()) {
KeyServerData::Incremental auth_inc;
AuthMonitor::Incremental inc;
inc.inc_type = AuthMonitor::AUTH_DATA;
- ::encode(auth_inc, inc.auth_data);
+ encode(auth_inc, inc.auth_data);
inc.auth_type = CEPH_AUTH_CEPHX;
inc.encode(bl, CEPH_FEATURES_ALL);
c.set_flag(MonCommand::FLAG_MGR);
}
bufferlist bl;
- ::encode(mgr_command_descs, bl);
+ encode(mgr_command_descs, bl);
t->put("mgr_command_desc", "", bl);
}
return st.apply_transaction(t);
{
auto stamp = ceph_clock_now();
bufferlist bl;
- ::encode(stamp, bl);
+ encode(stamp, bl);
t->put(prefix, "stamp", bl);
}
{
if (full_ratio > 1.0)
full_ratio /= 100.0;
bufferlist bl;
- ::encode(full_ratio, bl);
+ encode(full_ratio, bl);
t->put(prefix, "full_ratio", bl);
}
{
if (backfillfull_ratio > 1.0)
backfillfull_ratio /= 100.0;
bufferlist bl;
- ::encode(backfillfull_ratio, bl);
+ encode(backfillfull_ratio, bl);
t->put(prefix, "backfillfull_ratio", bl);
}
{
if (nearfull_ratio > 1.0)
nearfull_ratio /= 100.0;
bufferlist bl;
- ::encode(nearfull_ratio, bl);
+ encode(nearfull_ratio, bl);
t->put(prefix, "nearfull_ratio", bl);
}
st.apply_transaction(t);
}
bufferlist::iterator bp = attr.begin();
try {
- ::decode(oi, bp);
+ decode(oi, bp);
} catch (...) {
r = -EINVAL;
cerr << "Error getting attr on : " << make_pair(coll, *obj) << ", "
// new omap key
cout << "setting '_remove' omap key" << std::endl;
map<string,bufferlist> values;
- ::encode((char)1, values["_remove"]);
+ encode((char)1, values["_remove"]);
t->omap_setkeys(coll, pgmeta_oid, values);
return 0;
}
// mark this coll for removal until we're done
map<string,bufferlist> values;
- ::encode((char)1, values["_remove"]);
+ encode((char)1, values["_remove"]);
t.omap_setkeys(coll, pgid.make_pgmeta_oid(), values);
store->apply_transaction(&osr, std::move(t));
return 0;
oi.clear_flag(object_info_t::FLAG_LOST);
bufferlist bl;
- ::encode(oi, bl, -1); /* fixme: using full features */
+ encode(oi, bl, -1); /* fixme: using full features */
ObjectStore::Transaction t;
t.setattr(coll, ghobj, OI_ATTR, bl);
int r = store->apply_transaction(osr, std::move(t));
}
bufferlist::iterator bp = attr.begin();
try {
- ::decode(ss, bp);
+ decode(ss, bp);
} catch (...) {
r = -EINVAL;
cerr << "Error decoding snapset on : " << make_pair(coll, ghobj) << ", "
object_info_t oi;
bufferlist::iterator bp = attr.begin();
try {
- ::decode(oi, bp);
+ decode(oi, bp);
formatter->open_object_section("info");
oi.dump(formatter);
formatter->close_section();
object_info_t oi;
bufferlist::iterator bp = attr.begin();
try {
- ::decode(oi, bp);
+ decode(oi, bp);
} catch (...) {
r = -EINVAL;
cerr << "Error getting attr on : " << make_pair(coll, ghobj) << ", "
// Changing objectstore size will invalidate data_digest, so clear it.
oi.clear_data_digest();
}
- ::encode(oi, attr, -1); /* fixme: using full features */
+ encode(oi, attr, -1); /* fixme: using full features */
t.setattr(coll, ghobj, OI_ATTR, attr);
if (is_snap) {
bufferlist snapattr;
snapattr.clear();
- ::encode(ss, snapattr);
+ encode(ss, snapattr);
t.setattr(coll, head, SS_ATTR, snapattr);
}
r = store->apply_transaction(&osr, std::move(t));
if (!dry_run) {
bufferlist bl;
- ::encode(ss, bl);
+ encode(ss, bl);
ObjectStore::Transaction t;
t.setattr(coll, ghobj, SS_ATTR, bl);
int r = store->apply_transaction(&osr, std::move(t));
return 0;
bufferlist bl;
- ::encode(snapset, bl);
+ encode(snapset, bl);
ObjectStore::Transaction t;
t.setattr(coll, ghobj, SS_ATTR, bl);
int r = store->apply_transaction(&osr, std::move(t));
}
p = bl.begin();
- ::decode(superblock, p);
+ decode(superblock, p);
if (debug) {
cerr << "Cluster fsid=" << superblock.cluster_fsid << std::endl;
// Serialize
bufferlist inode_bl;
- ::encode(std::string(CEPH_FS_ONDISK_MAGIC), inode_bl);
+ encode(std::string(CEPH_FS_ONDISK_MAGIC), inode_bl);
inode.encode(inode_bl, CEPH_FEATURES_SUPPORTED_DEFAULT);
// Write
std::string read_tag;
bufferlist::iterator q = scrub_tag_bl.begin();
try {
- ::decode(read_tag, q);
+ decode(read_tag, q);
if (read_tag == filter_tag) {
dout(20) << "skipping " << oid << " because it has the filter_tag"
<< dendl;
try {
snapid_t dnfirst;
- ::decode(dnfirst, q);
+ decode(dnfirst, q);
char dentry_type;
- ::decode(dentry_type, q);
+ decode(dentry_type, q);
if (dentry_type == 'I') {
InodeStore inode;
inode.decode_bare(q);
} else if (dentry_type == 'L') {
inodeno_t ino;
unsigned char d_type;
- ::decode(ino, q);
- ::decode(d_type, q);
+ decode(ino, q);
+ decode(d_type, q);
if (step == SCAN_INOS) {
remote_links[ino]++;
if (layout_r != -ENODATA) {
try {
bufferlist::iterator q = layout_bl.begin();
- ::decode(loaded_layout, q);
+ decode(loaded_layout, q);
} catch (buffer::error &e) {
dout(4) << "Corrupt layout on '" << oid << "': " << e << dendl;
if (!force_corrupt) {
try {
bufferlist::iterator q = vals[key].begin();
snapid_t dnfirst;
- ::decode(dnfirst, q);
+ decode(dnfirst, q);
char dentry_type;
- ::decode(dentry_type, q);
+ decode(dentry_type, q);
if (dentry_type == 'I') {
inode->decode_bare(q);
return 0;
dn_key.encode(key);
bufferlist dentry_bl;
- ::encode(snap, dentry_bl);
- ::encode('I', dentry_bl);
+ encode(snap, dentry_bl);
+ encode('I', dentry_bl);
inode.encode_bare(dentry_bl, CEPH_FEATURES_SUPPORTED_DEFAULT);
// Write out
h.layout.pool_id = fs->mds_map.get_metadata_pool();
bufferlist hbl;
- ::encode(h, hbl);
+ encode(h, hbl);
object_t oid = file_object_t(ino, 0);
object_locator_t oloc(fs->mds_map.get_metadata_pool());
do {
bufferlist::iterator p = read_buf.begin();
uint64_t candidate_sentinel;
- ::decode(candidate_sentinel, p);
+ decode(candidate_sentinel, p);
dout(4) << "Data at 0x" << std::hex << read_offset << " = 0x" << candidate_sentinel << std::dec << dendl;
dout(4) << "Writing object..." << dendl;
bufferlist header_bl;
- ::encode(*(js.header), header_bl);
+ encode(*(js.header), header_bl);
output.write_full(js.obj_name(0), header_bl);
dout(4) << "Write complete." << dendl;
std::cout << "Successfully updated header." << std::endl;
bufferlist::iterator q = old_dentry.begin();
snapid_t dnfirst;
- ::decode(dnfirst, q);
+ decode(dnfirst, q);
char dentry_type;
- ::decode(dentry_type, q);
+ decode(dentry_type, q);
if (dentry_type == 'L') {
// leave write_dentry false, we have no version to
// Compose: Dentry format is dnfirst, [I|L], InodeStore(bare=true)
bufferlist dentry_bl;
- ::encode(fb.dnfirst, dentry_bl);
- ::encode('I', dentry_bl);
+ encode(fb.dnfirst, dentry_bl);
+ encode('I', dentry_bl);
encode_fullbit_as_inode(fb, true, &dentry_bl);
// Record for writing to RADOS
bufferlist::iterator q = old_dentry.begin();
snapid_t dnfirst;
- ::decode(dnfirst, q);
+ decode(dnfirst, q);
char dentry_type;
- ::decode(dentry_type, q);
+ decode(dentry_type, q);
if (dentry_type == 'L') {
dout(10) << "Existing hardlink inode in slot to be (maybe) written "
// Compose: Dentry format is dnfirst, [I|L], InodeStore(bare=true)
bufferlist dentry_bl;
- ::encode(rb.dnfirst, dentry_bl);
- ::encode('L', dentry_bl);
- ::encode(rb.ino, dentry_bl);
- ::encode(rb.d_type, dentry_bl);
+ encode(rb.dnfirst, dentry_bl);
+ encode('L', dentry_bl);
+ encode(rb.ino, dentry_bl);
+ encode(rb.d_type, dentry_bl);
// Record for writing to RADOS
write_vals[key] = dentry_bl;
bufferlist::iterator q = it->second.begin();
snapid_t dnfirst;
- ::decode(dnfirst, q);
+ decode(dnfirst, q);
char dentry_type;
- ::decode(dentry_type, q);
+ decode(dentry_type, q);
bool remove_dentry = false;
if (dentry_type == 'L') {
<< ")" << dendl;
bufferlist::iterator inode_bl_iter = old_root_ino_bl.begin();
std::string magic;
- ::decode(magic, inode_bl_iter);
+ decode(magic, inode_bl_iter);
if (magic == CEPH_FS_ONDISK_MAGIC) {
dout(4) << "magic ok" << dendl;
old_inode.decode(inode_bl_iter);
// Compose: root ino format is magic,InodeStore(bare=false)
bufferlist new_root_ino_bl;
- ::encode(std::string(CEPH_FS_ONDISK_MAGIC), new_root_ino_bl);
+ encode(std::string(CEPH_FS_ONDISK_MAGIC), new_root_ino_bl);
encode_fullbit_as_inode(fb, false, &new_root_ino_bl);
// Write to RADOS
// Deserialize InoTable
version_t inotable_ver;
bufferlist::iterator q = inotable_bl.begin();
- ::decode(inotable_ver, q);
+ decode(inotable_ver, q);
InoTable ino_table(NULL);
ino_table.decode(q);
inotable_ver += 1;
dout(4) << "writing modified inotable version " << inotable_ver << dendl;
bufferlist inotable_new_bl;
- ::encode(inotable_ver, inotable_new_bl);
+ encode(inotable_ver, inotable_new_bl);
ino_table.encode_state(inotable_new_bl);
int write_r = output.write_full(inotable_oid.name, inotable_new_bl);
if (write_r != 0) {
try {
if (mds_table) {
version_t version;
- ::decode(version, q);
+ decode(version, q);
f->dump_int("version", version);
}
A table_inst;
bufferlist new_bl;
if (mds_table) {
version_t version = 1;
- ::encode(version, new_bl);
+ encode(version, new_bl);
}
table_inst.encode_state(new_bl);
map<std::string, ceph::bufferlist>::iterator k = (const_cast<shard_info_t&>(shard)).attrs.find(OI_ATTR);
assert(k != shard.attrs.end()); // Can't be missing
bufferlist::iterator bliter = k->second.begin();
- ::decode(oi, bliter); // Can't be corrupted
+ decode(oi, bliter); // Can't be corrupted
f.dump_stream("object_info") << oi;
}
if (inc.has_attr_name_mismatch() || inc.has_attr_value_mismatch()
auto k = shard.attrs.find(OI_ATTR);
assert(k != shard.attrs.end()); // Can't be missing
bufferlist::iterator bliter = k->second.begin();
- ::decode(oi, bliter); // Can't be corrupted
+ decode(oi, bliter); // Can't be corrupted
f.dump_stream("selected_object_info") << oi;
break;
}
bufferlist header;
map<string, bufferlist> kv;
try {
- ::decode(header, p);
- ::decode(kv, p);
+ decode(header, p);
+ decode(kv, p);
}
catch (buffer::error& e) {
cerr << "error decoding tmap " << pool_name << "/" << oid << std::endl;
string v(nargs[4]);
bufferlist bl;
char c = (strcmp(nargs[1], "set") == 0) ? CEPH_OSD_TMAP_SET : CEPH_OSD_TMAP_CREATE;
- ::encode(c, bl);
- ::encode(k, bl);
- ::encode(v, bl);
+ encode(c, bl);
+ encode(k, bl);
+ encode(v, bl);
ret = io_ctx.tmap_update(oid, bl);
}
}
map<string, bufferlist> kv;
bufferlist::iterator p = bl.begin();
try {
- ::decode(hdr, p);
- ::decode(kv, p);
+ decode(hdr, p);
+ decode(kv, p);
}
catch (buffer::error& e) {
cerr << "error decoding tmap " << pool_name << "/" << oid << std::endl;
string oid(nargs[1]);
string msg(nargs[2]);
bufferlist bl, replybl;
- ::encode(msg, bl);
+ encode(msg, bl);
ret = io_ctx.notify2(oid, bl, 10000, &replybl);
if (ret != 0)
cerr << "error calling notify: " << cpp_strerror(ret) << std::endl;
map<pair<uint64_t,uint64_t>,bufferlist> rm;
set<pair<uint64_t,uint64_t> > missed;
bufferlist::iterator p = replybl.begin();
- ::decode(rm, p);
- ::decode(missed, p);
+ decode(rm, p);
+ decode(missed, p);
for (map<pair<uint64_t,uint64_t>,bufferlist>::iterator p = rm.begin();
p != rm.end();
++p) {
public:
void encode(bufferlist& bl) const {
- ::encode(acls_map, bl);
+ using ceph::encode;
+ encode(acls_map, bl);
}
void decode(bufferlist::iterator& bl) {
- ::decode(acls_map, bl);
+ using ceph::decode;
+ decode(acls_map, bl);
}
int read_acl(ACLID& id, ACLFlags *flags);
{
AuthMonitor::Incremental inc;
inc.inc_type = AuthMonitor::AUTH_DATA;
- ::encode(auth_inc, inc.auth_data);
+ encode(auth_inc, inc.auth_data);
inc.auth_type = CEPH_AUTH_CEPHX;
bufferlist bl;
__u8 v = 1;
- ::encode(v, bl);
+ encode(v, bl);
inc.encode(bl, CEPH_FEATURES_ALL);
const string prefix("auth");
}
auto bp = bl.begin();
try {
- ::decode(keyring, bp);
+ decode(keyring, bp);
} catch (const buffer::error& e) {
cerr << "error decoding keyring: " << keyring_path << std::endl;
return -EINVAL;
// fallback to default caps for an OSD
// osd 'allow *' mon 'allow rwx'
// as suggested by document.
- ::encode(string("allow *"), caps["osd"]);
- ::encode(string("allow rwx"), caps["mon"]);
+ encode(string("allow *"), caps["osd"]);
+ encode(string("allow rwx"), caps["mon"]);
} else {
caps = new_inc.caps;
}
if (r >= 0) {
pg_stat_t pg_stat;
auto bp = bl.begin();
- ::decode(pg_stat, bp);
+ decode(pg_stat, bp);
latest_epoch = pg_stat.reported_epoch;
}
if (info.stats.reported_epoch > latest_epoch) {
bufferlist bl;
- ::encode(info.stats, bl);
+ encode(info.stats, bl);
t->put(prefix, stringify(pgid.pgid), bl);
npg++;
}