if (handle)
handle->reset_tp_timeout();
- int op = i.get_op();
+ int op = i.decode_op();
int r = 0;
_inject_failure();
break;
case Transaction::OP_TOUCH:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
if (_check_replay_guard(cid, oid, spos) > 0)
r = _touch(cid, oid);
}
case Transaction::OP_WRITE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
bool replica = i.get_replica();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
if (_check_replay_guard(cid, oid, spos) > 0)
r = _write(cid, oid, off, len, bl, replica);
}
case Transaction::OP_ZERO:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
if (_check_replay_guard(cid, oid, spos) > 0)
r = _zero(cid, oid, off, len);
}
case Transaction::OP_TRIMCACHE:
{
- i.get_cid();
- i.get_oid();
- i.get_length();
- i.get_length();
+ i.decode_cid();
+ i.decode_oid();
+ i.decode_length();
+ i.decode_length();
// deprecated, no-op
}
break;
case Transaction::OP_TRUNCATE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
if (_check_replay_guard(cid, oid, spos) > 0)
r = _truncate(cid, oid, off);
}
case Transaction::OP_REMOVE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
if (_check_replay_guard(cid, oid, spos) > 0)
r = _remove(cid, oid, spos);
}
case Transaction::OP_SETATTR:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ string name = i.decode_attrname();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
if (_check_replay_guard(cid, oid, spos) > 0) {
map<string, bufferptr> to_set;
to_set[name] = bufferptr(bl.c_str(), bl.length());
case Transaction::OP_SETATTRS:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
map<string, bufferptr> aset;
- i.get_attrset(aset);
+ i.decode_attrset(aset);
if (_check_replay_guard(cid, oid, spos) > 0)
r = _setattrs(cid, oid, aset, spos);
if (r == -ENOSPC)
case Transaction::OP_RMATTR:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ string name = i.decode_attrname();
if (_check_replay_guard(cid, oid, spos) > 0)
r = _rmattr(cid, oid, name.c_str(), spos);
}
case Transaction::OP_RMATTRS:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
if (_check_replay_guard(cid, oid, spos) > 0)
r = _rmattrs(cid, oid, spos);
}
case Transaction::OP_CLONE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- ghobject_t noid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ ghobject_t noid = i.decode_oid();
r = _clone(cid, oid, noid, spos);
}
break;
case Transaction::OP_CLONERANGE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- ghobject_t noid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ ghobject_t noid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
r = _clone_range(cid, oid, noid, off, len, off, spos);
}
break;
case Transaction::OP_CLONERANGE2:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- ghobject_t noid = i.get_oid();
- uint64_t srcoff = i.get_length();
- uint64_t len = i.get_length();
- uint64_t dstoff = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ ghobject_t noid = i.decode_oid();
+ uint64_t srcoff = i.decode_length();
+ uint64_t len = i.decode_length();
+ uint64_t dstoff = i.decode_length();
r = _clone_range(cid, oid, noid, srcoff, len, dstoff, spos);
}
break;
case Transaction::OP_MKCOLL:
{
- coll_t cid = i.get_cid();
+ coll_t cid = i.decode_cid();
if (_check_replay_guard(cid, spos) > 0)
r = _create_collection(cid, spos);
}
case Transaction::OP_RMCOLL:
{
- coll_t cid = i.get_cid();
+ coll_t cid = i.decode_cid();
if (_check_replay_guard(cid, spos) > 0)
r = _destroy_collection(cid);
}
case Transaction::OP_COLL_ADD:
{
- coll_t ncid = i.get_cid();
- coll_t ocid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t ncid = i.decode_cid();
+ coll_t ocid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _collection_add(ncid, ocid, oid, spos);
}
break;
case Transaction::OP_COLL_REMOVE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
if (_check_replay_guard(cid, oid, spos) > 0)
r = _remove(cid, oid, spos);
}
case Transaction::OP_COLL_MOVE:
{
// WARNING: this is deprecated and buggy; only here to replay old journals.
- coll_t ocid = i.get_cid();
- coll_t ncid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t ocid = i.decode_cid();
+ coll_t ncid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _collection_add(ocid, ncid, oid, spos);
if (r == 0 &&
(_check_replay_guard(ocid, oid, spos) > 0))
case Transaction::OP_COLL_MOVE_RENAME:
{
- coll_t oldcid = i.get_cid();
- ghobject_t oldoid = i.get_oid();
- coll_t newcid = i.get_cid();
- ghobject_t newoid = i.get_oid();
+ coll_t oldcid = i.decode_cid();
+ ghobject_t oldoid = i.decode_oid();
+ coll_t newcid = i.decode_cid();
+ ghobject_t newoid = i.decode_oid();
r = _collection_move_rename(oldcid, oldoid, newcid, newoid, spos);
}
break;
case Transaction::OP_COLL_SETATTR:
{
- coll_t cid = i.get_cid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ string name = i.decode_attrname();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
if (_check_replay_guard(cid, spos) > 0)
r = _collection_setattr(cid, name.c_str(), bl.c_str(), bl.length());
}
case Transaction::OP_COLL_RMATTR:
{
- coll_t cid = i.get_cid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ string name = i.decode_attrname();
if (_check_replay_guard(cid, spos) > 0)
r = _collection_rmattr(cid, name.c_str());
}
case Transaction::OP_COLL_RENAME:
{
- coll_t cid(i.get_cid());
- coll_t ncid(i.get_cid());
+ coll_t cid(i.decode_cid());
+ coll_t ncid(i.decode_cid());
r = _collection_rename(cid, ncid, spos);
}
break;
case Transaction::OP_OMAP_CLEAR:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
r = _omap_clear(cid, oid, spos);
}
break;
case Transaction::OP_OMAP_SETKEYS:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
map<string, bufferlist> aset;
- i.get_attrset(aset);
+ i.decode_attrset(aset);
r = _omap_setkeys(cid, oid, aset, spos);
}
break;
case Transaction::OP_OMAP_RMKEYS:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
set<string> keys;
- i.get_keyset(keys);
+ i.decode_keyset(keys);
r = _omap_rmkeys(cid, oid, keys, spos);
}
break;
case Transaction::OP_OMAP_RMKEYRANGE:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
string first, last;
- first = i.get_key();
- last = i.get_key();
+ first = i.decode_key();
+ last = i.decode_key();
r = _omap_rmkeyrange(cid, oid, first, last, spos);
}
break;
case Transaction::OP_OMAP_SETHEADER:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
r = _omap_setheader(cid, oid, bl, spos);
}
break;
case Transaction::OP_SPLIT_COLLECTION:
{
- coll_t cid(i.get_cid());
- uint32_t bits(i.get_u32());
- uint32_t rem(i.get_u32());
- coll_t dest(i.get_cid());
+ coll_t cid(i.decode_cid());
+ uint32_t bits(i.decode_u32());
+ uint32_t rem(i.decode_u32());
+ coll_t dest(i.decode_cid());
r = _split_collection_create(cid, bits, rem, dest, spos);
}
break;
case Transaction::OP_SPLIT_COLLECTION2:
{
- coll_t cid(i.get_cid());
- uint32_t bits(i.get_u32());
- uint32_t rem(i.get_u32());
- coll_t dest(i.get_cid());
+ coll_t cid(i.decode_cid());
+ uint32_t bits(i.decode_u32());
+ uint32_t rem(i.decode_u32());
+ coll_t dest(i.decode_cid());
r = _split_collection(cid, bits, rem, dest, spos);
}
break;
case Transaction::OP_SETALLOCHINT:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t expected_object_size = i.get_length();
- uint64_t expected_write_size = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t expected_object_size = i.decode_length();
+ uint64_t expected_write_size = i.decode_length();
if (_check_replay_guard(cid, oid, spos) > 0)
r = _set_alloc_hint(cid, oid, expected_object_size,
expected_write_size);
if (handle)
handle->reset_tp_timeout();
- int op = i.get_op();
+ int op = i.decode_op();
int r = 0;
switch (op) {
case Transaction::OP_TOUCH:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _touch(cid, oid, t);
}
break;
case Transaction::OP_WRITE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
bool replica = i.get_replica();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
r = _write(cid, oid, off, len, bl, t, replica);
}
break;
case Transaction::OP_ZERO:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
r = _zero(cid, oid, off, len, t);
}
break;
case Transaction::OP_TRIMCACHE:
{
- i.get_cid();
- i.get_oid();
- i.get_length();
- i.get_length();
+ i.decode_cid();
+ i.decode_oid();
+ i.decode_length();
+ i.decode_length();
// deprecated, no-op
}
break;
case Transaction::OP_TRUNCATE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
r = _truncate(cid, oid, off, t);
}
break;
case Transaction::OP_REMOVE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _remove(cid, oid, t);
}
break;
case Transaction::OP_SETATTR:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ string name = i.decode_attrname();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
map<string, bufferptr> to_set;
to_set[name] = bufferptr(bl.c_str(), bl.length());
r = _setattrs(cid, oid, to_set, t);
case Transaction::OP_SETATTRS:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
map<string, bufferptr> aset;
- i.get_attrset(aset);
+ i.decode_attrset(aset);
r = _setattrs(cid, oid, aset, t);
if (r == -ENOSPC)
dout(0) << " ENOSPC on setxattrs on " << cid << "/" << oid << dendl;
case Transaction::OP_RMATTR:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ string name = i.decode_attrname();
r = _rmattr(cid, oid, name.c_str(), t);
}
break;
case Transaction::OP_RMATTRS:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _rmattrs(cid, oid, t);
}
break;
case Transaction::OP_CLONE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- ghobject_t noid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ ghobject_t noid = i.decode_oid();
r = _clone(cid, oid, noid, t);
}
break;
case Transaction::OP_CLONERANGE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- ghobject_t noid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ ghobject_t noid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
r = _clone_range(cid, oid, noid, off, len, off, t);
}
break;
case Transaction::OP_CLONERANGE2:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- ghobject_t noid = i.get_oid();
- uint64_t srcoff = i.get_length();
- uint64_t len = i.get_length();
- uint64_t dstoff = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ ghobject_t noid = i.decode_oid();
+ uint64_t srcoff = i.decode_length();
+ uint64_t len = i.decode_length();
+ uint64_t dstoff = i.decode_length();
r = _clone_range(cid, oid, noid, srcoff, len, dstoff, t);
}
break;
case Transaction::OP_MKCOLL:
{
- coll_t cid = i.get_cid();
+ coll_t cid = i.decode_cid();
r = _create_collection(cid, t);
}
break;
case Transaction::OP_RMCOLL:
{
- coll_t cid = i.get_cid();
+ coll_t cid = i.decode_cid();
r = _destroy_collection(cid, t);
}
break;
case Transaction::OP_COLL_ADD:
{
- coll_t ncid = i.get_cid();
- coll_t ocid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t ncid = i.decode_cid();
+ coll_t ocid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _collection_add(ncid, ocid, oid, t);
}
break;
case Transaction::OP_COLL_REMOVE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _remove(cid, oid, t);
}
break;
case Transaction::OP_COLL_MOVE:
{
// WARNING: this is deprecated and buggy; only here to replay old journals.
- coll_t ocid = i.get_cid();
- coll_t ncid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t ocid = i.decode_cid();
+ coll_t ncid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _collection_move_rename(ocid, oid, ncid, oid, t);
}
break;
case Transaction::OP_COLL_MOVE_RENAME:
{
- coll_t oldcid = i.get_cid();
- ghobject_t oldoid = i.get_oid();
- coll_t newcid = i.get_cid();
- ghobject_t newoid = i.get_oid();
+ coll_t oldcid = i.decode_cid();
+ ghobject_t oldoid = i.decode_oid();
+ coll_t newcid = i.decode_cid();
+ ghobject_t newoid = i.decode_oid();
r = _collection_move_rename(oldcid, oldoid, newcid, newoid, t);
}
break;
case Transaction::OP_COLL_SETATTR:
{
- coll_t cid = i.get_cid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ string name = i.decode_attrname();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
r = _collection_setattr(cid, name.c_str(), bl.c_str(), bl.length(), t);
}
break;
case Transaction::OP_COLL_RMATTR:
{
- coll_t cid = i.get_cid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ string name = i.decode_attrname();
r = _collection_rmattr(cid, name.c_str(), t);
}
break;
case Transaction::OP_COLL_RENAME:
{
- coll_t cid(i.get_cid());
- coll_t ncid(i.get_cid());
+ coll_t cid(i.decode_cid());
+ coll_t ncid(i.decode_cid());
r = _collection_rename(cid, ncid, t);
}
break;
case Transaction::OP_OMAP_CLEAR:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
r = _omap_clear(cid, oid, t);
}
break;
case Transaction::OP_OMAP_SETKEYS:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
map<string, bufferlist> aset;
- i.get_attrset(aset);
+ i.decode_attrset(aset);
r = _omap_setkeys(cid, oid, aset, t);
}
break;
case Transaction::OP_OMAP_RMKEYS:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
set<string> keys;
- i.get_keyset(keys);
+ i.decode_keyset(keys);
r = _omap_rmkeys(cid, oid, keys, t);
}
break;
case Transaction::OP_OMAP_RMKEYRANGE:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
string first, last;
- first = i.get_key();
- last = i.get_key();
+ first = i.decode_key();
+ last = i.decode_key();
r = _omap_rmkeyrange(cid, oid, first, last, t);
}
break;
case Transaction::OP_OMAP_SETHEADER:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
r = _omap_setheader(cid, oid, bl, t);
}
break;
case Transaction::OP_SPLIT_COLLECTION:
{
- coll_t cid(i.get_cid());
- uint32_t bits(i.get_u32());
- uint32_t rem(i.get_u32());
- coll_t dest(i.get_cid());
+ coll_t cid(i.decode_cid());
+ uint32_t bits(i.decode_u32());
+ uint32_t rem(i.decode_u32());
+ coll_t dest(i.decode_cid());
r = _split_collection_create(cid, bits, rem, dest, t);
}
break;
case Transaction::OP_SPLIT_COLLECTION2:
{
- coll_t cid(i.get_cid());
- uint32_t bits(i.get_u32());
- uint32_t rem(i.get_u32());
- coll_t dest(i.get_cid());
+ coll_t cid(i.decode_cid());
+ uint32_t bits(i.decode_u32());
+ uint32_t rem(i.decode_u32());
+ coll_t dest(i.decode_cid());
r = _split_collection(cid, bits, rem, dest, t);
}
break;
case Transaction::OP_SETALLOCHINT:
{
// TODO: can kvstore make use of the hint?
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
- i.get_length(); // uint64_t expected_object_size
- i.get_length(); // uint64_t expected_write_size
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
+ i.decode_length(); // uint64_t expected_object_size
+ i.decode_length(); // uint64_t expected_write_size
}
break;
int pos = 0;
while (i.have_op()) {
- int op = i.get_op();
+ int op = i.decode_op();
int r = 0;
switch (op) {
break;
case Transaction::OP_TOUCH:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _touch(cid, oid);
}
break;
case Transaction::OP_WRITE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
bool replica = i.get_replica();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
r = _write(cid, oid, off, len, bl, replica);
}
break;
case Transaction::OP_ZERO:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
r = _zero(cid, oid, off, len);
}
break;
case Transaction::OP_TRIMCACHE:
{
- i.get_cid();
- i.get_oid();
- i.get_length();
- i.get_length();
+ i.decode_cid();
+ i.decode_oid();
+ i.decode_length();
+ i.decode_length();
// deprecated, no-op
}
break;
case Transaction::OP_TRUNCATE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
r = _truncate(cid, oid, off);
}
break;
case Transaction::OP_REMOVE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _remove(cid, oid);
}
break;
case Transaction::OP_SETATTR:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ string name = i.decode_attrname();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
map<string, bufferptr> to_set;
to_set[name] = bufferptr(bl.c_str(), bl.length());
r = _setattrs(cid, oid, to_set);
case Transaction::OP_SETATTRS:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
map<string, bufferptr> aset;
- i.get_attrset(aset);
+ i.decode_attrset(aset);
r = _setattrs(cid, oid, aset);
}
break;
case Transaction::OP_RMATTR:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ string name = i.decode_attrname();
r = _rmattr(cid, oid, name.c_str());
}
break;
case Transaction::OP_RMATTRS:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _rmattrs(cid, oid);
}
break;
case Transaction::OP_CLONE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- ghobject_t noid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ ghobject_t noid = i.decode_oid();
r = _clone(cid, oid, noid);
}
break;
case Transaction::OP_CLONERANGE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- ghobject_t noid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ ghobject_t noid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
r = _clone_range(cid, oid, noid, off, len, off);
}
break;
case Transaction::OP_CLONERANGE2:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- ghobject_t noid = i.get_oid();
- uint64_t srcoff = i.get_length();
- uint64_t len = i.get_length();
- uint64_t dstoff = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ ghobject_t noid = i.decode_oid();
+ uint64_t srcoff = i.decode_length();
+ uint64_t len = i.decode_length();
+ uint64_t dstoff = i.decode_length();
r = _clone_range(cid, oid, noid, srcoff, len, dstoff);
}
break;
case Transaction::OP_MKCOLL:
{
- coll_t cid = i.get_cid();
+ coll_t cid = i.decode_cid();
r = _create_collection(cid);
}
break;
case Transaction::OP_RMCOLL:
{
- coll_t cid = i.get_cid();
+ coll_t cid = i.decode_cid();
r = _destroy_collection(cid);
}
break;
case Transaction::OP_COLL_ADD:
{
- coll_t ncid = i.get_cid();
- coll_t ocid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t ncid = i.decode_cid();
+ coll_t ocid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _collection_add(ncid, ocid, oid);
}
break;
case Transaction::OP_COLL_REMOVE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
r = _remove(cid, oid);
}
break;
case Transaction::OP_COLL_MOVE_RENAME:
{
- coll_t oldcid = i.get_cid();
- ghobject_t oldoid = i.get_oid();
- coll_t newcid = i.get_cid();
- ghobject_t newoid = i.get_oid();
+ coll_t oldcid = i.decode_cid();
+ ghobject_t oldoid = i.decode_oid();
+ coll_t newcid = i.decode_cid();
+ ghobject_t newoid = i.decode_oid();
r = _collection_move_rename(oldcid, oldoid, newcid, newoid);
}
break;
case Transaction::OP_COLL_SETATTR:
{
- coll_t cid = i.get_cid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ string name = i.decode_attrname();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
r = _collection_setattr(cid, name.c_str(), bl.c_str(), bl.length());
}
break;
case Transaction::OP_COLL_RMATTR:
{
- coll_t cid = i.get_cid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ string name = i.decode_attrname();
r = _collection_rmattr(cid, name.c_str());
}
break;
case Transaction::OP_COLL_RENAME:
{
- coll_t cid(i.get_cid());
- coll_t ncid(i.get_cid());
+ coll_t cid(i.decode_cid());
+ coll_t ncid(i.decode_cid());
r = _collection_rename(cid, ncid);
}
break;
case Transaction::OP_OMAP_CLEAR:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
r = _omap_clear(cid, oid);
}
break;
case Transaction::OP_OMAP_SETKEYS:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
map<string, bufferlist> aset;
- i.get_attrset(aset);
+ i.decode_attrset(aset);
r = _omap_setkeys(cid, oid, aset);
}
break;
case Transaction::OP_OMAP_RMKEYS:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
set<string> keys;
- i.get_keyset(keys);
+ i.decode_keyset(keys);
r = _omap_rmkeys(cid, oid, keys);
}
break;
case Transaction::OP_OMAP_RMKEYRANGE:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
string first, last;
- first = i.get_key();
- last = i.get_key();
+ first = i.decode_key();
+ last = i.decode_key();
r = _omap_rmkeyrange(cid, oid, first, last);
}
break;
case Transaction::OP_OMAP_SETHEADER:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
r = _omap_setheader(cid, oid, bl);
}
break;
break;
case Transaction::OP_SPLIT_COLLECTION2:
{
- coll_t cid(i.get_cid());
- uint32_t bits(i.get_u32());
- uint32_t rem(i.get_u32());
- coll_t dest(i.get_cid());
+ coll_t cid(i.decode_cid());
+ uint32_t bits(i.decode_u32());
+ uint32_t rem(i.decode_u32());
+ coll_t dest(i.decode_cid());
r = _split_collection(cid, bits, rem, dest);
}
break;
case Transaction::OP_SETALLOCHINT:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
- i.get_length(); // uint64_t expected_object_size
- i.get_length(); // uint64_t expected_write_size
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
+ i.decode_length(); // uint64_t expected_object_size
+ i.decode_length(); // uint64_t expected_write_size
}
break;
int op_num = 0;
bool stop_looping = false;
while (i.have_op() && !stop_looping) {
- int op = i.get_op();
+ int op = i.decode_op();
f->open_object_section("op");
f->dump_int("op_num", op_num);
break;
case Transaction::OP_TOUCH:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
f->dump_string("op_name", "touch");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_WRITE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
f->dump_string("op_name", "write");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_ZERO:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
f->dump_string("op_name", "zero");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_TRIMCACHE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
f->dump_string("op_name", "trim_cache");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_TRUNCATE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t off = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t off = i.decode_length();
f->dump_string("op_name", "truncate");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_REMOVE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
f->dump_string("op_name", "remove");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_SETATTR:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ string name = i.decode_attrname();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
f->dump_string("op_name", "setattr");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_SETATTRS:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
map<string, bufferptr> aset;
- i.get_attrset(aset);
+ i.decode_attrset(aset);
f->dump_string("op_name", "setattrs");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_RMATTR:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ string name = i.decode_attrname();
f->dump_string("op_name", "rmattr");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_RMATTRS:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
f->dump_string("op_name", "rmattrs");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_CLONE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- ghobject_t noid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ ghobject_t noid = i.decode_oid();
f->dump_string("op_name", "clone");
f->dump_stream("collection") << cid;
f->dump_stream("src_oid") << oid;
case Transaction::OP_CLONERANGE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- ghobject_t noid = i.get_oid();
- uint64_t off = i.get_length();
- uint64_t len = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ ghobject_t noid = i.decode_oid();
+ uint64_t off = i.decode_length();
+ uint64_t len = i.decode_length();
f->dump_string("op_name", "clonerange");
f->dump_stream("collection") << cid;
f->dump_stream("src_oid") << oid;
case Transaction::OP_CLONERANGE2:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- ghobject_t noid = i.get_oid();
- uint64_t srcoff = i.get_length();
- uint64_t len = i.get_length();
- uint64_t dstoff = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ ghobject_t noid = i.decode_oid();
+ uint64_t srcoff = i.decode_length();
+ uint64_t len = i.decode_length();
+ uint64_t dstoff = i.decode_length();
f->dump_string("op_name", "clonerange2");
f->dump_stream("collection") << cid;
f->dump_stream("src_oid") << oid;
case Transaction::OP_MKCOLL:
{
- coll_t cid = i.get_cid();
+ coll_t cid = i.decode_cid();
f->dump_string("op_name", "mkcoll");
f->dump_stream("collection") << cid;
}
case Transaction::OP_RMCOLL:
{
- coll_t cid = i.get_cid();
+ coll_t cid = i.decode_cid();
f->dump_string("op_name", "rmcoll");
f->dump_stream("collection") << cid;
}
case Transaction::OP_COLL_ADD:
{
- coll_t ncid = i.get_cid();
- coll_t ocid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t ncid = i.decode_cid();
+ coll_t ocid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
f->dump_string("op_name", "collection_add");
f->dump_stream("src_collection") << ocid;
f->dump_stream("dst_collection") << ncid;
case Transaction::OP_COLL_REMOVE:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
f->dump_string("op_name", "collection_remove");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_COLL_MOVE:
{
- coll_t ocid = i.get_cid();
- coll_t ncid = i.get_cid();
- ghobject_t oid = i.get_oid();
+ coll_t ocid = i.decode_cid();
+ coll_t ncid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
f->open_object_section("collection_move");
f->dump_stream("src_collection") << ocid;
f->dump_stream("dst_collection") << ncid;
case Transaction::OP_COLL_SETATTR:
{
- coll_t cid = i.get_cid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ string name = i.decode_attrname();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
f->dump_string("op_name", "collection_setattr");
f->dump_stream("collection") << cid;
f->dump_string("name", name);
case Transaction::OP_COLL_RMATTR:
{
- coll_t cid = i.get_cid();
- string name = i.get_attrname();
+ coll_t cid = i.decode_cid();
+ string name = i.decode_attrname();
f->dump_string("op_name", "collection_rmattr");
f->dump_stream("collection") << cid;
f->dump_string("name", name);
case Transaction::OP_COLL_RENAME:
{
- coll_t cid(i.get_cid());
- coll_t ncid(i.get_cid());
+ coll_t cid(i.decode_cid());
+ coll_t ncid(i.decode_cid());
f->dump_string("op_name", "collection_rename");
f->dump_stream("src_collection") << cid;
f->dump_stream("dst_collection") << ncid;
case Transaction::OP_OMAP_CLEAR:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
f->dump_string("op_name", "omap_clear");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_OMAP_SETKEYS:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
map<string, bufferlist> aset;
- i.get_attrset(aset);
+ i.decode_attrset(aset);
f->dump_string("op_name", "omap_setkeys");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_OMAP_RMKEYS:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
set<string> keys;
- i.get_keyset(keys);
+ i.decode_keyset(keys);
f->dump_string("op_name", "omap_rmkeys");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_OMAP_SETHEADER:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
bufferlist bl;
- i.get_bl(bl);
+ i.decode_bl(bl);
f->dump_string("op_name", "omap_setheader");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_SPLIT_COLLECTION:
{
- coll_t cid(i.get_cid());
- uint32_t bits(i.get_u32());
- uint32_t rem(i.get_u32());
- coll_t dest(i.get_cid());
+ coll_t cid(i.decode_cid());
+ uint32_t bits(i.decode_u32());
+ uint32_t rem(i.decode_u32());
+ coll_t dest(i.decode_cid());
f->dump_string("op_name", "op_split_collection_create");
f->dump_stream("collection") << cid;
f->dump_stream("bits") << bits;
case Transaction::OP_SPLIT_COLLECTION2:
{
- coll_t cid(i.get_cid());
- uint32_t bits(i.get_u32());
- uint32_t rem(i.get_u32());
- coll_t dest(i.get_cid());
+ coll_t cid(i.decode_cid());
+ uint32_t bits(i.decode_u32());
+ uint32_t rem(i.decode_u32());
+ coll_t dest(i.decode_cid());
f->dump_string("op_name", "op_split_collection");
f->dump_stream("collection") << cid;
f->dump_stream("bits") << bits;
case Transaction::OP_OMAP_RMKEYRANGE:
{
- coll_t cid(i.get_cid());
- ghobject_t oid = i.get_oid();
+ coll_t cid(i.decode_cid());
+ ghobject_t oid = i.decode_oid();
string first, last;
- first = i.get_key();
- last = i.get_key();
+ first = i.decode_key();
+ last = i.decode_key();
f->dump_string("op_name", "op_omap_rmkeyrange");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
case Transaction::OP_COLL_MOVE_RENAME:
{
- coll_t old_cid(i.get_cid());
- ghobject_t old_oid = i.get_oid();
- coll_t new_cid(i.get_cid());
- ghobject_t new_oid = i.get_oid();
+ coll_t old_cid(i.decode_cid());
+ ghobject_t old_oid = i.decode_oid();
+ coll_t new_cid(i.decode_cid());
+ ghobject_t new_oid = i.decode_oid();
f->dump_string("op_name", "op_coll_move_rename");
f->dump_stream("old_collection") << old_cid;
f->dump_stream("old_oid") << old_oid;
case Transaction::OP_SETALLOCHINT:
{
- coll_t cid = i.get_cid();
- ghobject_t oid = i.get_oid();
- uint64_t expected_object_size = i.get_length();
- uint64_t expected_write_size = i.get_length();
+ coll_t cid = i.decode_cid();
+ ghobject_t oid = i.decode_oid();
+ uint64_t expected_object_size = i.decode_length();
+ uint64_t expected_write_size = i.decode_length();
f->dump_string("op_name", "op_setallochint");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
* stream. There is no checking that the encoded data is of the
* correct type.
*/
- int get_op() {
+ int decode_op() {
__u32 op;
::decode(op, p);
return op;
}
- void get_bl(bufferlist& bl) {
+ void decode_bl(bufferlist& bl) {
::decode(bl, p);
}
/// Get an oid, recognize various legacy forms and update them.
- ghobject_t get_oid() {
+ ghobject_t decode_oid() {
ghobject_t oid;
if (sobject_encoding) {
sobject_t soid;
}
return oid;
}
- coll_t get_cid() {
+ coll_t decode_cid() {
coll_t c;
::decode(c, p);
return c;
}
- uint64_t get_length() {
+ uint64_t decode_length() {
uint64_t len;
::decode(len, p);
return len;
}
- string get_attrname() {
+ string decode_attrname() {
string s;
::decode(s, p);
return s;
}
- string get_key() {
+ string decode_key() {
string s;
::decode(s, p);
return s;
}
- void get_attrset(map<string,bufferptr>& aset) {
+ void decode_attrset(map<string,bufferptr>& aset) {
::decode(aset, p);
}
- void get_attrset(map<string,bufferlist>& aset) {
+ void decode_attrset(map<string,bufferlist>& aset) {
::decode(aset, p);
}
- void get_keyset(set<string> &keys) {
+ void decode_keyset(set<string> &keys) {
::decode(keys, p);
}
- uint32_t get_u32() {
+ uint32_t decode_u32() {
uint32_t bits;
::decode(bits, p);
return bits;