It is possible to write a buffer, truncate it away, and then not have it
when we get the commit.
Fixes: #1467
Signed-off-by: Sage Weil <sage@newdream.net>
<< dendl;
if (objects[poolid].count(oid) == 0) {
ldout(cct, 7) << "bh_write_commit no object cache" << dendl;
- assert(0);
} else {
Object *ob = objects[poolid][oid];
p++) {
BufferHead *bh = p->second;
- if (bh->start() > start+(loff_t)length) break;
+ if (bh->start() > start+(loff_t)length)
+ break;
if (bh->start() < start &&
bh->end() > start+(loff_t)length) {