Skip to content

Commit

Permalink
Merge pull request #11597 from ifed01/wip-bluestore-reshard-fix
Browse files Browse the repository at this point in the history
os/bluestore: fix lack of resharding

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Oct 21, 2016
2 parents c862060 + 059cc40 commit 8f00116
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/os/bluestore/BlueStore.cc
Expand Up @@ -1503,14 +1503,12 @@ bool BlueStore::ExtentMap::update(Onode *o, KeyValueDB::Transaction t,
if (o->onode.extent_map_shards.empty()) {
if (inline_bl.length() == 0) {
unsigned n;
if (encode_some(0, OBJECT_MAX_SIZE, inline_bl, &n)) {
return true;
}
bool never_happen = encode_some(0, OBJECT_MAX_SIZE, inline_bl, &n); //we need to encode inline_bl to measure encoded length
assert(!never_happen);
size_t len = inline_bl.length();
dout(20) << __func__ << " inline shard "
<< len << " bytes from " << n << " extents" << dendl;
if (!force && len > g_conf->bluestore_extent_map_shard_max_size) {
inline_bl.clear();
return true;
}
}
Expand Down

0 comments on commit 8f00116

Please sign in to comment.