avoid waiting for quorum health while debugging (#19955)

This commit is contained in:
Harshavardhana
2024-06-19 10:12:20 -07:00
committed by GitHub
parent e5335450a4
commit 7a4b250c8b
3 changed files with 13 additions and 19 deletions

View File

@@ -189,12 +189,14 @@ func printMinIOVersion(c *cli.Context) {
io.Copy(c.App.Writer, versionBanner(c))
}
var debugNoExit = env.Get("_MINIO_DEBUG_NO_EXIT", "") != ""
// Main main for minio server.
func Main(args []string) {
// Set the minio app name.
appName := filepath.Base(args[0])
if env.Get("_MINIO_DEBUG_NO_EXIT", "") != "" {
if debugNoExit {
freeze := func(_ int) {
// Infinite blocking op
<-make(chan struct{})