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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
add os.Kill signal to handle. go fmt some code.
Chris Lu029923329da2
diff --git a/go/filer/client_operations.go b/go/filer/client_operations.goindex 2eb5c399df..b8a4dca538 100644--- a/go/filer/client_operations.go+++ b/go/filer/client_operations.go@@ -68,4 +68,3 @@ func call(server string, request ApiRequest, ret interface{}) error {}return nil}-diff --git a/go/weed/mount.go b/go/weed/mount.goindex 23f85f567e..0290e0f53c 100644--- a/go/weed/mount.go+++ b/go/weed/mount.go@@ -1,7 +1,6 @@package main-import (-)+import ()type MountOptions struct {filer *stringdiff --git a/go/weed/mount_std.go b/go/weed/mount_std.goindex 5d01a0f87e..35ca4011d4 100644--- a/go/weed/mount_std.go+++ b/go/weed/mount_std.go@@ -29,7 +29,7 @@ func runMount(cmd *Command, args []string) bool {}signalChan := make(chan os.Signal, 1)- signal.Notify(signalChan, os.Interrupt)+ signal.Notify(signalChan, os.Interrupt, os.Kill)go func() {for _ = range signalChan {// sig is a ^C, handle itdiff --git a/go/weed/server.go b/go/weed/server.goindex a62291bd02..7684dcbde9 100644--- a/go/weed/server.go+++ b/go/weed/server.go@@ -220,7 +220,7 @@ func runServer(cmd *Command, args []string) bool {// deal with control+csignalChan := make(chan os.Signal, 1)- signal.Notify(signalChan, os.Interrupt)+ signal.Notify(signalChan, os.Interrupt, os.Kill)go func() {for _ = range signalChan {volumeServer.Shutdown()diff --git a/go/weed/volume.go b/go/weed/volume.goindex 1885afd79d..5afa8eea5d 100644--- a/go/weed/volume.go+++ b/go/weed/volume.go@@ -94,7 +94,7 @@ func runVolume(cmd *Command, args []string) bool {// deal with control+csignalChan := make(chan os.Signal, 1)- signal.Notify(signalChan, os.Interrupt)+ signal.Notify(signalChan, os.Interrupt, os.Kill)go func() {for _ = range signalChan {volumeServer.Shutdown()