Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix tests

Chris Luae9b81c18fb7
diff --git a/weed/filer2/filer_notify.go b/weed/filer2/filer_notify.go
index 2ce45db0e1..a96d8fe4b7 100644
--- a/weed/filer2/filer_notify.go
+++ b/weed/filer2/filer_notify.go
@@ -15,13 +15,17 @@ func (f *Filer) NotifyUpdateEvent(oldEntry, newEntry *Entry) {
return
}
- msgqueue.Queue.SendMessage(
- key,
- &filer_pb.EventNotification{
- OldEntry: toProtoEntry(oldEntry),
- NewEntry: toProtoEntry(newEntry),
- },
- )
+ if msgqueue.Queue != nil {
+
+ msgqueue.Queue.SendMessage(
+ key,
+ &filer_pb.EventNotification{
+ OldEntry: toProtoEntry(oldEntry),
+ NewEntry: toProtoEntry(newEntry),
+ },
+ )
+
+ }
}