From 1877ce5126c6281f48ad526c6ddf45b28bd0d3e1 Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 15 Jan 2024 21:31:21 -0800 Subject: [PATCH] rename --- weed/filer/filer.go | 2 +- weed/util/log_buffer/log_buffer.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/filer/filer.go b/weed/filer/filer.go index 518a1ba77..9be8d5259 100644 --- a/weed/filer/filer.go +++ b/weed/filer/filer.go @@ -377,6 +377,6 @@ func (f *Filer) doListDirectoryEntries(ctx context.Context, p util.FullPath, sta } func (f *Filer) Shutdown() { - f.LocalMetaLogBuffer.Shutdown() + f.LocalMetaLogBuffer.ShutdownLogBuffer() f.Store.Shutdown() } diff --git a/weed/util/log_buffer/log_buffer.go b/weed/util/log_buffer/log_buffer.go index 8c96c594e..e7dd3dce0 100644 --- a/weed/util/log_buffer/log_buffer.go +++ b/weed/util/log_buffer/log_buffer.go @@ -132,7 +132,7 @@ func (logBuffer *LogBuffer) IsStopping() bool { return logBuffer.isStopping.Load() } -func (logBuffer *LogBuffer) Shutdown() { +func (logBuffer *LogBuffer) ShutdownLogBuffer() { isAlreadyStopped := logBuffer.isStopping.Swap(true) if isAlreadyStopped { return