This patch is mostly a wash, except that _rename now avoids doing the
_do_remove() work in the case where the object didn't exist before.
Signed-off-by: Jianjian Huo <samuel.huo@gmail.com>
// install a non-existent onode it its place
po->second.reset(new Onode(old_oid, o->key));
- po->second->exists = false;
lru.push_back(*po->second);
// fix oid, key
// loaded
assert(r >=0);
on = new Onode(oid, key);
+ on->exists = true;
bufferlist::iterator p = v.begin();
::decode(on->onode, p);
}
<< " " << offset << "~" << length
<< dendl;
int r = 0;
+ o->exists = true;
+
_dump_onode(o);
_assign_nid(txc, o);
oid(o),
key(k),
dirty(false),
- exists(true) {
+ exists(false) {
}
void flush();