mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
mon: OSDMonitor: be scary about inconsistent pool tier ids
We may not crash your cluster, but you'll know that this is not something that should have happened. Big letters makes it obvious. We'd make them red too if we bothered to look for the ANSI code. Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
This commit is contained in:
parent
64bdf6c92b
commit
8e5a8daf98
@ -5235,7 +5235,10 @@ done:
|
||||
goto reply;
|
||||
}
|
||||
if (tp->tier_of != pool_id) {
|
||||
ss << "tier pool '" << tierpoolstr << "' is a tier of '" << tp->tier_of << "'";
|
||||
ss << "tier pool '" << tierpoolstr << "' is a tier of '"
|
||||
<< osdmap.get_pool_name(tp->tier_of) << "': "
|
||||
// be scary about it; this is an inconsistency and bells must go off
|
||||
<< "THIS SHOULD NOT HAVE HAPPENED AT ALL";
|
||||
err = -EINVAL;
|
||||
goto reply;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user