alg, not type!
This bug made us incorrectly think we were using v4 features when user type
5 was being used. That's currently 'rack' with recent crush maps, but
was other types for clusters that were created with older versions. This
is clearly problematic as it will lock out non-hammer clients incorrectly,
breaking deployments on upgrade.
Fixes: #11364
Backport: hammer
Signed-off-by: Sage Weil <sage@redhat.com>
crush_bucket *b = crush->buckets[i];
if (!b)
continue;
- if (b->type == CRUSH_BUCKET_STRAW2)
+ if (b->alg == CRUSH_BUCKET_STRAW2)
return true;
}
return false;