Signed-off-by: Sage Weil <sage@redhat.com>
e.bdev = id;
int r = alloc[id]->allocate(left, g_conf->bluefs_alloc_size, hint,
&e.offset, &e.length);
- if (r < 0)
+ if (r < 0) {
+ assert(0 == "allocate failed... wtf");
return r;
+ }
if (!ev->empty() && ev->back().end() == e.offset)
ev->back().length += e.length;
else
bluestore_extent_t e;
r = alloc->allocate(MIN(gift, 1ull<<31), min_alloc_size, 0,
&e.offset, &e.length);
- if (r < 0)
+ if (r < 0) {
+ assert(0 == "allocate failed, wtf");
return r;
+ }
dout(1) << __func__ << " gifting " << e << " to bluefs" << dendl;
extents->push_back(e);