Browse Source

rename

pull/5637/head
chrislu 12 months ago
parent
commit
1877ce5126
  1. 2
      weed/filer/filer.go
  2. 2
      weed/util/log_buffer/log_buffer.go

2
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()
}

2
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

Loading…
Cancel
Save