mirror of
https://github.com/minio/minio.git
synced 2026-11-06 08:33:14 +00:00
Disable crawler in FS/NAS gateway mode (#9695)
No one really uses FS for large scale accounting usage, neither we crawl in NAS gateway mode. It is worthwhile to simply disable this feature as its not useful for anyone. Bonus disable bucket quota ops as well in, FS and gateway mode
This commit is contained in:
1 parent
301de169e9
commit
eba423bb9d
10 files changed
+29
-77
No files matched your search
+1
-4
@@ -24,7 +24,6 @@ import (
|
||||
"io"
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/signal"
|
||||
"strings"
|
||||
@@ -441,9 +440,7 @@ func serverMain(ctx *cli.Context) {
|
||||
}
|
||||
|
||||
// Configure server.
|
||||
var handler http.Handler
|
||||
enableBucketQuotaOps := env.Get(envDataUsageCrawlConf, config.EnableOn) == config.EnableOn
|
||||
handler, err = configureServerHandler(globalEndpoints, enableBucketQuotaOps)
|
||||
handler, err := configureServerHandler(globalEndpoints)
|
||||
if err != nil {
|
||||
logger.Fatal(config.ErrUnexpectedError(err), "Unable to configure one of server's RPC services")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user