mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix: TestCommandEcBalanceSmall Unit test fails when CommandEnv is nil (#3497)
This commit is contained in:
parent
7eb15b1969
commit
911475526c
|
@ -83,7 +83,7 @@ func (ce *CommandEnv) confirmIsLocked(args []string) error {
|
|||
}
|
||||
|
||||
func (ce *CommandEnv) isLocked() bool {
|
||||
return ce.locker.IsLocked()
|
||||
return ce != nil && ce.locker.IsLocked()
|
||||
}
|
||||
|
||||
func (ce *CommandEnv) checkDirectory(path string) error {
|
||||
|
|
Loading…
Reference in a new issue