Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

adjust log file names

Chris Lub10679fcf093
diff --git a/weed/filer2/filer_notify.go b/weed/filer2/filer_notify.go
index 402d87313e..29ba3eead4 100644
--- a/weed/filer2/filer_notify.go
+++ b/weed/filer2/filer_notify.go
@@ -68,9 +68,9 @@ func (f *Filer) logMetaEvent(ts time.Time, fullpath string, eventNotification *f
}
func (f *Filer) logFlushFunc(startTime, stopTime time.Time, buf []byte) {
- targetFile := fmt.Sprintf("/.meta/log/%04d/%02d/%02d/%02d/%02d/%02d-%02d.log",
+ targetFile := fmt.Sprintf("/.meta/log/%04d/%02d/%02d/%02d/%02d/%02d.%09d.log",
startTime.Year(), startTime.Month(), startTime.Day(), startTime.Hour(), startTime.Minute(),
- startTime.Second(), stopTime.Second())
+ startTime.Second(), startTime.Nanosecond())
if err := f.appendToFile(targetFile, buf); err != nil {
glog.V(0).Infof("log write failed %s: %v", targetFile, err)