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
|
return nil
|
||||||
|
|
||||||
}
|
}
|
||||||
func (m *LogBuffer) ReleaseMeory(b *bytes.Buffer) {
|
func (m *LogBuffer) ReleaseMemory(b *bytes.Buffer) {
|
||||||
bufferPool.Put(b)
|
bufferPool.Put(b)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,14 +20,14 @@ func (logBuffer *LogBuffer) LoopProcessLogData(
|
||||||
lastReadTime := startTreadTime
|
lastReadTime := startTreadTime
|
||||||
defer func() {
|
defer func() {
|
||||||
if bytesBuf != nil {
|
if bytesBuf != nil {
|
||||||
logBuffer.ReleaseMeory(bytesBuf)
|
logBuffer.ReleaseMemory(bytesBuf)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
|
||||||
if bytesBuf != nil {
|
if bytesBuf != nil {
|
||||||
logBuffer.ReleaseMeory(bytesBuf)
|
logBuffer.ReleaseMemory(bytesBuf)
|
||||||
}
|
}
|
||||||
bytesBuf = logBuffer.ReadFromBuffer(lastReadTime)
|
bytesBuf = logBuffer.ReadFromBuffer(lastReadTime)
|
||||||
// fmt.Printf("ReadFromBuffer by %v\n", lastReadTime)
|
// fmt.Printf("ReadFromBuffer by %v\n", lastReadTime)
|
||||||
|
|
Loading…
Reference in a new issue