mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 11:47:57 +08:00
still log, but not persisting the changes
This commit is contained in:
@@ -45,9 +45,7 @@ func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry, deleteChunks bool)
|
|||||||
notification.Queue.SendMessage(fullpath, eventNotification)
|
notification.Queue.SendMessage(fullpath, eventNotification)
|
||||||
}
|
}
|
||||||
|
|
||||||
if false {
|
f.logMetaEvent(time.Now(), fullpath, eventNotification)
|
||||||
f.logMetaEvent(time.Now(), fullpath, eventNotification)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,6 +68,9 @@ func (f *Filer) logMetaEvent(ts time.Time, fullpath string, eventNotification *f
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f *Filer) logFlushFunc(startTime, stopTime time.Time, buf []byte) {
|
func (f *Filer) logFlushFunc(startTime, stopTime time.Time, buf []byte) {
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
targetFile := fmt.Sprintf("/.meta/log/%04d/%02d/%02d/%02d/%02d/%02d.%09d.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.Year(), startTime.Month(), startTime.Day(), startTime.Hour(), startTime.Minute(),
|
||||||
startTime.Second(), startTime.Nanosecond())
|
startTime.Second(), startTime.Nanosecond())
|
||||||
|
Reference in New Issue
Block a user