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 test

chrisluf0b4a7659a85
diff --git a/weed/shell/commands.go b/weed/shell/commands.go
index e703aad014..87aeed2bb0 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -83,7 +83,10 @@ func (ce *CommandEnv) confirmIsLocked(args []string) error {
}
func (ce *CommandEnv) isLocked() bool {
- return ce != nil && ce.locker.IsLocked()
+ if ce == nil {
+ return true
+ }
+ return ce.locker.IsLocked()
}
func (ce *CommandEnv) checkDirectory(path string) error {