aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKent Overstreet <[email protected]>2024-05-19 20:09:35 -0400
committerKent Overstreet <[email protected]>2024-05-20 05:37:26 -0400
commit6b74fdcc8e25323cd256a573186f9c6c6c2410c0 (patch)
tree1a7b6938162097c99bbd38aff7b8f3a9ad560aa5 /tools/perf/scripts/python/export-to-postgresql.py
parentc06a8b75679d73473c0c382bcc676ee4b7657bee (diff)
bcachefs: bch2_checksum() returns 0 for unknown checksum type
This fixes missing guards on trying to calculate a checksum with an invalid/unknown checksum type; moving the guards up to e.g. btree_io.c might be "more correct", but doesn't buy us anything - an unknown checksum type will always be flagged as at least a checksum error so we aren't losing any safety doing it this way and it makes it less likely to accidentally pop an assert we don't want. Reported-by: [email protected] Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions