]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: update choose_args on bucket removal 22091/head
authorSage Weil <sage@redhat.com>
Fri, 18 May 2018 18:11:57 +0000 (13:11 -0500)
committerSage Weil <sage@redhat.com>
Sun, 20 May 2018 15:20:28 +0000 (10:20 -0500)
commita75ffcd17cc171a383315ec9738865de6c455086
tree3119e53ac459f7f919c3ec05e672b90606b7e091
parent564ef28a4014cb5d9959b1925154bbf7863fd0d4
crush: update choose_args on bucket removal

The specific bug I see is that a bucket no longer exists but its
choose_args still does.  However, I'm also taking the opportunity to
verify that the choose_args agrees with the bucket sizes and position
counts everywhere else, too.  Check for

- ids or weight_sets for buckets that don't exist or aren't straw2
- weight_set_positions that don't match the choose_args
  - don't fix this, just warn.  i'm not sure how it would happen.  :/
- weight_set sizes that don't match the bucket size

Fixes: http://tracker.ceph.com/issues/24167
Signed-off-by: Sage Weil <sage@redhat.com>
src/crush/CrushWrapper.cc