Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix index (#4158)

Guo Leib63d1e9c6b59
diff --git a/weed/shell/command_s3_configure.go b/weed/shell/command_s3_configure.go
index e7387a4a06..33c5a4cfcd 100644
--- a/weed/shell/command_s3_configure.go
+++ b/weed/shell/command_s3_configure.go
@@ -111,7 +111,7 @@ func (c *commandS3Configure) Do(args []string, commandEnv *CommandEnv, writer io
for _, i := range exists {
s3cfg.Identities[idx].Credentials = append(
s3cfg.Identities[idx].Credentials[:i],
- s3cfg.Identities[idx].Credentials[:i+1]...,
+ s3cfg.Identities[idx].Credentials[i+1:]...,
)
}