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:
Harshavardhana authored and GitHub committed 2020-05-25 00:17:52 -07:00
1 parent 301de169e9
commit eba423bb9d
10 files changed
+29 -77

No files matched your search

+1 -4
View File
@@ -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")
}