mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
encryption: Fix encrypted components mask check in describe
Fixes #22401
In the fix for scylladb/scylla-enterprise#892, the extraction and check for sstable component encryption mask was copied
to a subroutine for description purposes, but a very important 1 << <value> shift was somehow
left on the floor.
Without this, the check for whether we actually contain a component encrypted can be wholly
broken for some components.
Closes scylladb/scylladb#22398
(cherry picked from commit 7db14420b7)
Closes scylladb/scylladb#22599
This commit is contained in:
committed by
Botond Dénes
parent
d05b3897a2
commit
17c86f8b57
@@ -660,7 +660,7 @@ public:
|
||||
sstables::component_type::Statistics,
|
||||
sstables::component_type::TemporaryStatistics,
|
||||
}) {
|
||||
if (mask & int(c)) {
|
||||
if (mask & (1 << int(c))) {
|
||||
ccs.emplace_back(c);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user