mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 14:39:24 +08:00
add notification log
This commit is contained in:
@@ -3,6 +3,7 @@ package filer2
|
|||||||
import (
|
import (
|
||||||
"github.com/chrislusf/seaweedfs/weed/notification"
|
"github.com/chrislusf/seaweedfs/weed/notification"
|
||||||
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
|
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
|
||||||
|
"github.com/chrislusf/seaweedfs/weed/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry) {
|
func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry) {
|
||||||
@@ -17,6 +18,8 @@ func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry) {
|
|||||||
|
|
||||||
if notification.Queue != nil {
|
if notification.Queue != nil {
|
||||||
|
|
||||||
|
glog.V(3).Infof("notifying entry update %v", key)
|
||||||
|
|
||||||
notification.Queue.SendMessage(
|
notification.Queue.SendMessage(
|
||||||
key,
|
key,
|
||||||
&filer_pb.EventNotification{
|
&filer_pb.EventNotification{
|
||||||
|
Reference in New Issue
Block a user