mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 06:26:17 +03:00
listObjects: list objects minor optimization.
Minor optimization. - Add 1000 entries buffered channel for walkerCh. - Reset marker after the lexical order has reached and compare only if the marker is set.
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ func setIgnoreResourcesHandler(h http.Handler) http.Handler {
|
||||
|
||||
// Resource handler ServeHTTP() wrapper
|
||||
func (h resourceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
// Skip the first element which is usally '/' and split the rest.
|
||||
// Skip the first element which is usually '/' and split the rest.
|
||||
splits := strings.SplitN(r.URL.Path[1:], "/", 2)
|
||||
|
||||
// Save bucketName and objectName extracted from url Path.
|
||||
|
||||
Reference in New Issue
Block a user