Skip to content

Commit

Permalink
meta/dir: fix dir pattern (#5296)
Browse files Browse the repository at this point in the history
Signed-off-by: jiefenghuang <[email protected]>
  • Loading branch information
jiefenghuang authored Nov 13, 2024
1 parent 018fb2d commit 4b059dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/meta/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2950,7 +2950,7 @@ func (m *redisMeta) cleanupLeakedInodes(delete bool) {
cutoff := time.Now().Add(time.Hour * -1)
prefix := len(m.prefix)

_ = m.scan(ctx, "d[0-9]+", func(keys []string) error {
_ = m.scan(ctx, "d[0-9]*", func(keys []string) error {
for _, key := range keys {
ino, _ := strconv.Atoi(key[prefix+1:])
var entries []*Entry
Expand Down

0 comments on commit 4b059dd

Please sign in to comment.