mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-03 18:47:41 +01:00
use mem chunk only, swap file chunk has problems
This commit is contained in:
1 parent
363de28057
commit
8b915a93ce
1 file changed
+1
-1
@@ -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 false && isSequential &&
|
||||
if true || 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