mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-08 04:34:22 +08:00
tmp enable swap file chunk
This commit is contained in:
@@ -77,7 +77,7 @@ func (up *UploadPipeline) SaveDataAt(p []byte, off int64, isSequential bool, tsN
|
||||
up.moveToSealed(up.writableChunks[oldestChunkIndex], oldestChunkIndex)
|
||||
// fmt.Printf("flush chunk %d with %d bytes written\n", logicChunkIndex, oldestTs)
|
||||
}
|
||||
if true || isSequential &&
|
||||
if isSequential &&
|
||||
len(up.writableChunks) < up.writableChunkLimit &&
|
||||
atomic.LoadInt64(&memChunkCounter) < 4*int64(up.writableChunkLimit) {
|
||||
pageChunk = NewMemChunk(logicChunkIndex, up.ChunkSize)
|
||||
|
Reference in New Issue
Block a user