Signed-off-by: Jianjian Huo <samuel.huo@gmail.com>
<< dendl;
int r = 0;
for (map<string,bufferptr>::const_iterator p = aset.begin();
- p != aset.end(); ++p)
- o->onode.attrs[p->first] = p->second;
+ p != aset.end(); ++p) {
+ if (p->second.is_partial())
+ o->onode.attrs[p->first] = bufferptr(p->second.c_str(), p->second.length());
+ else
+ o->onode.attrs[p->first] = p->second;
+ }
txc->write_onode(o);
dout(10) << __func__ << " " << c->cid << " " << o->oid
<< " " << aset.size() << " keys"