diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2022-10-12 19:18:40 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-12 07:18:40 -0700 |
| commit | 401315f33750c7fa0374c00bcba8f26f8b67fe7b (patch) | |
| tree | e6e22cbdb5f02f92b23d33eb5ef9c2eeddce278e /weed/command/master.go | |
| parent | a05725aea6b6c4e99a5b6d9541b94fd7bbd15ab9 (diff) | |
| download | seaweedfs-401315f33750c7fa0374c00bcba8f26f8b67fe7b.tar.xz seaweedfs-401315f33750c7fa0374c00bcba8f26f8b67fe7b.zip | |
master fix interruption through ctrl+c (#3834)
Diffstat (limited to 'weed/command/master.go')
| -rw-r--r-- | weed/command/master.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/master.go b/weed/command/master.go index a74389b1f..39dbf42ed 100644 --- a/weed/command/master.go +++ b/weed/command/master.go @@ -255,7 +255,7 @@ func startMaster(masterOption MasterOptions, masterWhiteList []string) { } grace.OnInterrupt(ms.Shutdown) - grace.OnInterrupt(grpcS.GracefulStop) + grace.OnInterrupt(grpcS.Stop) grace.OnReload(func() { if ms.Topo.HashicorpRaft != nil && ms.Topo.HashicorpRaft.State() == hashicorpRaft.Leader { ms.Topo.HashicorpRaft.LeadershipTransfer() |
