mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 15:59:24 +08:00
avoid possible metadata subscription data loss
Previous implementation append filer logs into one file. So one file is not always sorted, which can lead to miss reading some entries, especially when different filers have different write throughput.
This commit is contained in:
@@ -87,3 +87,11 @@ func ResolvePath(path string) string {
|
||||
|
||||
return path
|
||||
}
|
||||
|
||||
func FileNameBase(filename string) string {
|
||||
lastDotIndex := strings.LastIndex(filename, ".")
|
||||
if lastDotIndex < 0 {
|
||||
return filename
|
||||
}
|
||||
return filename[:lastDotIndex]
|
||||
}
|
||||
|
Reference in New Issue
Block a user