Skip to content

Commit

Permalink
[thin_dump] bug in last bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jthornber committed Jun 28, 2013
1 parent fe8e159 commit e701b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thin-provisioning/metadata_dumper.cc
Expand Up @@ -51,7 +51,7 @@ namespace {
return false;
}

return loc.is_sub_root() ? (loc.path[0] == dev_id_) : true;
return (loc.is_sub_root() && loc.path.size()) ? (loc.path[0] == dev_id_) : true;
}

bool visit_internal_leaf(node_location const &loc,
Expand Down

0 comments on commit e701b96

Please sign in to comment.