mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-22 22:11:39 +02:00
filer: skip the inode index write when the path is already recorded
This commit is contained in:
1 parent
ff4b43e0f1
commit
d6b4290527
1 file changed
+3
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user