aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictorSFF <113080569+VictorSFF@users.noreply.github.com>2022-09-09 21:32:19 +0800
committerGitHub <noreply@github.com>2022-09-09 06:32:19 -0700
commit10d545060f5b1ef517786857726f409ed0f95652 (patch)
treeea5b723d2c882fae607680c0a31d3f40881dcc83
parent41af5a6ee52c67a80fd28a65a159048b2764e5b9 (diff)
downloadseaweedfs-10d545060f5b1ef517786857726f409ed0f95652.tar.xz
seaweedfs-10d545060f5b1ef517786857726f409ed0f95652.zip
mount: fix new inode allocation (#3633)
-rw-r--r--weed/mount/inode_to_path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/mount/inode_to_path.go b/weed/mount/inode_to_path.go
index 512d60f45..ffa2c4271 100644
--- a/weed/mount/inode_to_path.go
+++ b/weed/mount/inode_to_path.go
@@ -80,7 +80,7 @@ func (i *InodeToPath) Lookup(path util.FullPath, unixTime int64, isDirectory boo
}
if !isHardlink {
for _, found := i.inode2path[inode]; found; inode++ {
- _, found = i.inode2path[inode]
+ _, found = i.inode2path[inode+1]
}
}
}