break;
-
// -- trivial map --
case CEPH_OSD_OP_TMAPGET:
{
- // write it
vector<OSDOp> nops(1);
OSDOp& newop = nops[0];
newop.op.op = CEPH_OSD_OP_READ;
} else {
// header
bufferlist header;
+ __u32 nkeys = 0;
if (ibl.length()) {
::decode(header, ip);
+ ::decode(nkeys, ip);
}
dout(10) << "tmapup header " << header.length() << dendl;
::decode(header, bp);
changed = true;
dout(10) << "tmapup new header " << header.length() << dendl;
- } else
- ++bp;
+ }
::encode(header, obl);
- // key count
- __u32 nkeys;
- ::decode(nkeys, ip);
dout(20) << "tmapup initial nkeys " << nkeys << dendl;
// update keys