Browse Source

avoid passe lock by value

pull/4841/head
wang wusong 1 year ago
committed by Chris Lu
parent
commit
9e5b1eef9b
  1. 7
      weed/mount/dirty_pages_chunked.go

7
weed/mount/dirty_pages_chunked.go

@ -2,11 +2,12 @@ package mount
import (
"fmt"
"io"
"sync"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/mount/page_writer"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"io"
"sync"
)
type ChunkedDirtyPages struct {
@ -82,7 +83,7 @@ func (pages *ChunkedDirtyPages) saveChunkedFileIntervalToStorage(reader io.Reade
}
func (pages ChunkedDirtyPages) Destroy() {
func (pages *ChunkedDirtyPages) Destroy() {
pages.uploadPipeline.Shutdown()
}

Loading…
Cancel
Save