Browse Source

Merge branch 'master' into bptree

pull/2354/head
Chris Lu 3 years ago
parent
commit
198fa58e3c
  1. 2
      weed/filer/redis/universal_redis_store.go
  2. 2
      weed/filer/redis2/universal_redis_store.go

2
weed/filer/redis/universal_redis_store.go

@ -120,6 +120,8 @@ func (store *UniversalRedisStore) DeleteFolderChildren(ctx context.Context, full
if err != nil { if err != nil {
return fmt.Errorf("delete %s in parent dir: %v", fullpath, err) return fmt.Errorf("delete %s in parent dir: %v", fullpath, err)
} }
// not efficient, but need to remove if it is a directory
store.Client.Del(ctx, genDirectoryListKey(string(path)))
} }
return nil return nil

2
weed/filer/redis2/universal_redis_store.go

@ -144,6 +144,8 @@ func (store *UniversalRedis2Store) DeleteFolderChildren(ctx context.Context, ful
if err != nil { if err != nil {
return fmt.Errorf("DeleteFolderChildren %s in parent dir: %v", fullpath, err) return fmt.Errorf("DeleteFolderChildren %s in parent dir: %v", fullpath, err)
} }
// not efficient, but need to remove if it is a directory
store.Client.Del(ctx, genDirectoryListKey(string(path)))
} }
return nil return nil

Loading…
Cancel
Save