add notification log

This commit is contained in:
Chris Lu 2018-09-16 11:20:36 -07:00
parent 5c6e3f457f
commit 70e67b7c6d

View file

@ -3,6 +3,7 @@ package filer2
import (
"github.com/chrislusf/seaweedfs/weed/notification"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"github.com/chrislusf/seaweedfs/weed/glog"
)
func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry) {
@ -17,6 +18,8 @@ func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry) {
if notification.Queue != nil {
glog.V(3).Infof("notifying entry update %v", key)
notification.Queue.SendMessage(
key,
&filer_pb.EventNotification{