mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
bitrot: add selftest for server startup (#11917)
This commit adds a self-test for all bitrot algorithms: - SHA-256 - BLAKE2b - HighwayHash The self-test computes an incremental checksum of pseudo-random messages. If a bitrot algorithm implementation stops working on some CPU architecture or with a certain Go version this self-test will prevent the server from starting and silently corrupting data. For additional context see: minio/highwayhash#19
This commit is contained in:
committed by
GitHub
parent
075bccda42
commit
d5d2fc9850
@@ -413,6 +413,7 @@ func serverMain(ctx *cli.Context) {
|
||||
logger.AddTarget(globalConsoleSys)
|
||||
|
||||
// Perform any self-tests
|
||||
bitrotSelfTest()
|
||||
erasureSelfTest()
|
||||
compressSelfTest()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user