This is a portion of the namespace project.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
idata_from_key_args op;
bufferlist::iterator it = in->begin();
try {
- ::decode(op, it);
+ decode(op, it);
} catch (buffer::error& err) {
CLS_LOG(20, "error decoding idata_from_key_args.");
return -EINVAL;
if (r < 0) {
return r;
} else {
- ::encode(op, *out);
+ encode(op, *out);
return 0;
}
}
idata_from_idata_args op;
bufferlist::iterator it = in->begin();
try {
- ::decode(op, it);
+ decode(op, it);
} catch (buffer::error& err) {
return -EINVAL;
}
idata_from_idata_args op;
bufferlist::iterator it = in->begin();
try {
- ::decode(op, it);
+ decode(op, it);
} catch (buffer::error& err) {
return -EINVAL;
}
map<string, bufferlist> outmap;
bufferlist::iterator it = in->begin();
try {
- ::decode(op, it);
+ decode(op, it);
} catch (buffer::error & err) {
return -EINVAL;
}
assert_size_args op;
bufferlist::iterator it = in->begin();
try {
- ::decode(op, it);
+ decode(op, it);
} catch (buffer::error& err) {
return -EINVAL;
}
omap_set_args op;
bufferlist::iterator it = in->begin();
try {
- ::decode(op, it);
+ decode(op, it);
} catch (buffer::error& err) {
return -EINVAL;
}
map<string, bufferlist> omap;
bufferlist::iterator it = in->begin();
try {
- ::decode(omap, it);
+ decode(omap, it);
} catch (buffer::error& err) {
return -EINVAL;
}
omap_rm_args op;
bufferlist::iterator it = in->begin();
try {
- ::decode(op, it);
+ decode(op, it);
} catch (buffer::error& err) {
return -EINVAL;
}
rebalance_args op;
bufferlist::iterator it = in->begin();
try {
- ::decode(op, it);
+ decode(op, it);
} catch (buffer::error& err) {
return -EINVAL;
}
const map<std::string, bufferlist> &to_set,
librados::ObjectWriteOperation *owo) {
bufferlist inbl;
- ::encode(to_set, inbl);
+ encode(to_set, inbl);
owo->exec("kvs", "create_with_omap", inbl);
}
if (verbose) cout << "created key set and big_map" << std::endl;
- ::encode(keys, inbl);
+ encode(keys, inbl);
librados::AioCompletion * aioc = rados.aio_create_completion();
io_ctx.aio_exec(index_name, aioc, "kvs", "read_many", inbl, &outbl);
aioc->wait_for_safe();
map<string, bufferlist> imap;//read from the index
bufferlist::iterator blit = outbl.begin();
- ::decode(imap, blit);
+ decode(imap, blit);
if (verbose) cout << "finished reading index for objects. there are "
<< imap.size() << " entries that need to be changed. " << std::endl;
void encode(bufferlist &bl) const {
ENCODE_START(1,1,bl);
- ::encode(raw_key, bl);
- ::encode(prefix, bl);
+ encode(raw_key, bl);
+ encode(prefix, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator &p) {
DECODE_START(1, p);
- ::decode(raw_key, p);
- ::decode(prefix, p);
+ decode(raw_key, p);
+ decode(prefix, p);
DECODE_FINISH(p);
}
};
void encode(bufferlist &bl) const {
ENCODE_START(1,1,bl);
- ::encode(min_kdata, bl);
- ::encode(max_kdata, bl);
- ::encode(name, bl);
- ::encode(omap, bl);
- ::encode(unwritable, bl);
- ::encode(version, bl);
- ::encode(size, bl);
+ encode(min_kdata, bl);
+ encode(max_kdata, bl);
+ encode(name, bl);
+ encode(omap, bl);
+ encode(unwritable, bl);
+ encode(version, bl);
+ encode(size, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator &p) {
DECODE_START(1, p);
- ::decode(min_kdata, p);
- ::decode(max_kdata, p);
- ::decode(name, p);
- ::decode(omap, p);
- ::decode(unwritable, p);
- ::decode(version, p);
- ::decode(size, p);
+ decode(min_kdata, p);
+ decode(max_kdata, p);
+ decode(name, p);
+ decode(omap, p);
+ decode(unwritable, p);
+ decode(version, p);
+ decode(size, p);
DECODE_FINISH(p);
}
};
void encode(bufferlist &bl) const {
ENCODE_START(1,1,bl);
- ::encode(min, bl);
- ::encode(max, bl);
- ::encode(obj, bl);
+ encode(min, bl);
+ encode(max, bl);
+ encode(obj, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator &p) {
DECODE_START(1, p);
- ::decode(min, p);
- ::decode(max, p);
- ::decode(obj, p);
+ decode(min, p);
+ decode(max, p);
+ decode(obj, p);
DECODE_FINISH(p);
}
};
void encode(bufferlist &bl) const {
ENCODE_START(1,1,bl);
- ::encode(min, bl);
- ::encode(max, bl);
- ::encode(obj, bl);
- ::encode(version, bl);
+ encode(min, bl);
+ encode(max, bl);
+ encode(obj, bl);
+ encode(version, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator &p) {
DECODE_START(1, p);
- ::decode(min, p);
- ::decode(max, p);
- ::decode(obj, p);
- ::decode(version, p);
+ decode(min, p);
+ decode(max, p);
+ decode(obj, p);
+ decode(version, p);
DECODE_FINISH(p);
}
};
void encode(bufferlist &bl) const {
ENCODE_START(1,1,bl);
- ::encode(prefix, bl);
- ::encode(min_kdata, bl);
- ::encode(kdata, bl);
- ::encode(ts, bl);
- ::encode(to_create, bl);
- ::encode(to_delete, bl);
- ::encode(obj, bl);
+ encode(prefix, bl);
+ encode(min_kdata, bl);
+ encode(kdata, bl);
+ encode(ts, bl);
+ encode(to_create, bl);
+ encode(to_delete, bl);
+ encode(obj, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator &p) {
DECODE_START(1, p);
- ::decode(prefix, p);
- ::decode(min_kdata, p);
- ::decode(kdata, p);
- ::decode(ts, p);
- ::decode(to_create, p);
- ::decode(to_delete, p);
- ::decode(obj, p);
+ decode(prefix, p);
+ decode(min_kdata, p);
+ decode(kdata, p);
+ decode(ts, p);
+ decode(to_create, p);
+ decode(to_delete, p);
+ decode(obj, p);
DECODE_FINISH(p);
}
void encode(bufferlist &bl) const {
ENCODE_START(1,1,bl);
- ::encode(bound, bl);
- ::encode(comparator, bl);
+ encode(bound, bl);
+ encode(comparator, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator &p) {
DECODE_START(1, p);
- ::decode(bound, p);
- ::decode(comparator, p);
+ decode(bound, p);
+ decode(comparator, p);
DECODE_FINISH(p);
}
};
void encode(bufferlist &bl) const {
ENCODE_START(1,1,bl);
- ::encode(key, bl);
- ::encode(idata, bl);
- ::encode(next_idata, bl);
+ encode(key, bl);
+ encode(idata, bl);
+ encode(next_idata, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator &p) {
DECODE_START(1, p);
- ::decode(key, p);
- ::decode(idata, p);
- ::decode(next_idata, p);
+ decode(key, p);
+ decode(idata, p);
+ decode(next_idata, p);
DECODE_FINISH(p);
}
};
void encode(bufferlist &bl) const {
ENCODE_START(1,1,bl);
- ::encode(idata, bl);
- ::encode(next_idata, bl);
+ encode(idata, bl);
+ encode(next_idata, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator &p) {
DECODE_START(1, p);
- ::decode(idata, p);
- ::decode(next_idata, p);
+ decode(idata, p);
+ decode(next_idata, p);
DECODE_FINISH(p);
}
};
void encode(bufferlist &bl) const {
ENCODE_START(1,1,bl);
- ::encode(omap, bl);
- ::encode(bound, bl);
- ::encode(exclusive, bl);
+ encode(omap, bl);
+ encode(bound, bl);
+ encode(exclusive, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator &p) {
DECODE_START(1, p);
- ::decode(omap, p);
- ::decode(bound, p);
- ::decode(exclusive, p);
+ decode(omap, p);
+ decode(bound, p);
+ decode(exclusive, p);
DECODE_FINISH(p);
}
};
void encode(bufferlist &bl) const {
ENCODE_START(1,1,bl);
- ::encode(omap, bl);
- ::encode(bound, bl);
+ encode(omap, bl);
+ encode(bound, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator &p) {
DECODE_START(1, p);
- ::decode(omap, p);
- ::decode(bound, p);
+ decode(omap, p);
+ decode(bound, p);
DECODE_FINISH(p);
}
};
void encode(bufferlist &bl) const {
ENCODE_START(1,1,bl);
- ::encode(odata, bl);
- ::encode(bound, bl);
- ::encode(comparator, bl);
+ encode(odata, bl);
+ encode(bound, bl);
+ encode(comparator, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator &p) {
DECODE_START(1, p);
- ::decode(odata,p);
- ::decode(bound, p);
- ::decode(comparator, p);
+ decode(odata,p);
+ decode(bound, p);
+ decode(comparator, p);
DECODE_FINISH(p);
}
};