aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-08 20:32:57 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-08 20:32:57 -0700
commited98223b08dcb192aa047864af4aa67874e0a54e (patch)
treef077c3cadb7c798751e62ab5a7e3a29793243214
parent6630541399afd64ecce76b0197f0562ccf7f4da7 (diff)
downloadseaweedfs-ed98223b08dcb192aa047864af4aa67874e0a54e.tar.xz
seaweedfs-ed98223b08dcb192aa047864af4aa67874e0a54e.zip
still log, but not persisting the changes
-rw-r--r--weed/filer2/filer_notify.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/weed/filer2/filer_notify.go b/weed/filer2/filer_notify.go
index c57631466..095587038 100644
--- a/weed/filer2/filer_notify.go
+++ b/weed/filer2/filer_notify.go
@@ -45,9 +45,7 @@ func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry, deleteChunks bool)
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) {
+
+ return
+
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(), startTime.Nanosecond())