MCPcopy Index your code
hub / github.com/CodisLabs/codis / Close

Method Close

pkg/utils/log/rolling.go:69–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func (r *rollingFile) Close() error {
70 r.mu.Lock()
71 defer r.mu.Unlock()
72
73 if r.closed {
74 return nil
75 }
76
77 r.closed = true
78 if f := r.file; f != nil {
79 r.file = nil
80 return errors.Trace(f.Close())
81 }
82 return nil
83}
84
85func (r *rollingFile) Write(b []byte) (int, error) {
86 r.mu.Lock()

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected