filer: skip the inode index write when the path is already recorded

This commit is contained in:
Chris Lu committed 2026-10-22 02:59:21 -07:00
1 parent ff4b43e0f1
commit d6b4290527
1 file changed
+3 -1
+3 -1
View File
@@ -210,7 +210,9 @@ func (fsw *FilerStoreWrapper) storeInodeIndex(ctx context.Context, path util.Ful
}
record = &InodeIndexRecord{Generation: InodeIndexInitialGeneration}
}
record.AddPath(path)
if !record.AddPath(path) {
return nil
}
value, err := record.Encode()
if err != nil {