mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
rename
This commit is contained in:
parent
50f7e2e89f
commit
0be6863c87
|
@ -249,7 +249,7 @@ func (m *LogBuffer) ReadFromBuffer(lastReadTime time.Time) (bufferCopy *bytes.Bu
|
|||
return nil
|
||||
|
||||
}
|
||||
func (m *LogBuffer) ReleaseMeory(b *bytes.Buffer) {
|
||||
func (m *LogBuffer) ReleaseMemory(b *bytes.Buffer) {
|
||||
bufferPool.Put(b)
|
||||
}
|
||||
|
||||
|
|
|
@ -20,14 +20,14 @@ func (logBuffer *LogBuffer) LoopProcessLogData(
|
|||
lastReadTime := startTreadTime
|
||||
defer func() {
|
||||
if bytesBuf != nil {
|
||||
logBuffer.ReleaseMeory(bytesBuf)
|
||||
logBuffer.ReleaseMemory(bytesBuf)
|
||||
}
|
||||
}()
|
||||
|
||||
for {
|
||||
|
||||
if bytesBuf != nil {
|
||||
logBuffer.ReleaseMeory(bytesBuf)
|
||||
logBuffer.ReleaseMemory(bytesBuf)
|
||||
}
|
||||
bytesBuf = logBuffer.ReadFromBuffer(lastReadTime)
|
||||
// fmt.Printf("ReadFromBuffer by %v\n", lastReadTime)
|
||||
|
|
Loading…
Reference in a new issue