aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filer_notify.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-06-28 14:34:51 -0700
committerChris Lu <chris.lu@gmail.com>2020-06-28 14:34:51 -0700
commitdf75b5c98d5ff837c25e77f9636c34e70697a7a8 (patch)
tree1df3acf7f1858b6bb2f6e9127e5b03d14c4a5fb6 /weed/filer2/filer_notify.go
parent12f6b683fcb2870bc096d35ac7366b270e6d8762 (diff)
downloadseaweedfs-df75b5c98d5ff837c25e77f9636c34e70697a7a8.tar.xz
seaweedfs-df75b5c98d5ff837c25e77f9636c34e70697a7a8.zip
passing ctx for metadata logging
Diffstat (limited to 'weed/filer2/filer_notify.go')
-rw-r--r--weed/filer2/filer_notify.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/filer2/filer_notify.go b/weed/filer2/filer_notify.go
index ecb488373..d63e9609c 100644
--- a/weed/filer2/filer_notify.go
+++ b/weed/filer2/filer_notify.go
@@ -15,7 +15,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/util"
)
-func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry, deleteChunks bool) {
+func (f *Filer) NotifyUpdateEvent(ctx context.Context, oldEntry, newEntry *Entry, deleteChunks bool) {
var fullpath string
if oldEntry != nil {
fullpath = string(oldEntry.FullPath)
@@ -47,11 +47,11 @@ func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry, deleteChunks bool)
notification.Queue.SendMessage(fullpath, eventNotification)
}
- f.logMetaEvent(fullpath, eventNotification)
+ f.logMetaEvent(ctx, fullpath, eventNotification)
}
-func (f *Filer) logMetaEvent(fullpath string, eventNotification *filer_pb.EventNotification) {
+func (f *Filer) logMetaEvent(ctx context.Context, fullpath string, eventNotification *filer_pb.EventNotification) {
dir, _ := util.FullPath(fullpath).DirAndName()