aboutsummaryrefslogtreecommitdiff
path: root/weed/filer
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2021-02-11 01:05:03 -0800
committerGitHub <noreply@github.com>2021-02-11 01:05:03 -0800
commit0f426ce34d63deb6c8d4695c43a9e7c504e25005 (patch)
treed0471963e986edb21f7a2e8ded89e9558b442c46 /weed/filer
parent885ca34748926b5ffb6fe6ef4cfc5e225bdaa98c (diff)
parent94eac4f00eb5fc364614b53718a4243141572215 (diff)
downloadseaweedfs-0f426ce34d63deb6c8d4695c43a9e7c504e25005.tar.xz
seaweedfs-0f426ce34d63deb6c8d4695c43a9e7c504e25005.zip
Merge pull request #1801 from kmlebedev/recoveringRabbitMQ
Do reconnect to RabbitMQ
Diffstat (limited to 'weed/filer')
-rw-r--r--weed/filer/filer_notify.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/filer/filer_notify.go b/weed/filer/filer_notify.go
index f3a795ad0..c461a82b8 100644
--- a/weed/filer/filer_notify.go
+++ b/weed/filer/filer_notify.go
@@ -55,7 +55,10 @@ func (f *Filer) NotifyUpdateEvent(ctx context.Context, oldEntry, newEntry *Entry
if notification.Queue != nil {
glog.V(3).Infof("notifying entry update %v", fullpath)
- notification.Queue.SendMessage(fullpath, eventNotification)
+ if err := notification.Queue.SendMessage(fullpath, eventNotification); err != nil {
+ // throw message
+ glog.Error(err)
+ }
}
f.logMetaEvent(ctx, fullpath, eventNotification)