|
|
@ -5,7 +5,7 @@ import ( |
|
|
|
"fmt" |
|
|
|
"time" |
|
|
|
|
|
|
|
"github.com/redis/go-redis/v9" |
|
|
|
"github.com/go-redis/redis/v8" |
|
|
|
|
|
|
|
"github.com/seaweedfs/seaweedfs/weed/filer" |
|
|
|
"github.com/seaweedfs/seaweedfs/weed/glog" |
|
|
@ -57,7 +57,7 @@ func (store *UniversalRedis2Store) InsertEntry(ctx context.Context, entry *filer |
|
|
|
} |
|
|
|
|
|
|
|
if name != "" { |
|
|
|
if err = store.Client.ZAddNX(ctx, genDirectoryListKey(dir), redis.Z{Score: 0, Member: name}).Err(); err != nil { |
|
|
|
if err = store.Client.ZAddNX(ctx, genDirectoryListKey(dir), &redis.Z{Score: 0, Member: name}).Err(); err != nil { |
|
|
|
return fmt.Errorf("persisting %s in parent dir: %v", entry.FullPath, err) |
|
|
|
} |
|
|
|
} |
|
|
|