Use correct value to disable/enable direct arenas in PooledByteBufAllocator

This commit is contained in:
Norman Maurer 2013-05-30 20:24:11 +02:00
parent 89f1f3f4d1
commit bc20107b68

View File

@ -142,7 +142,7 @@ public class PooledByteBufAllocator extends AbstractByteBufAllocator {
heapArenas = null;
}
if (nHeapArena > 0) {
if (nDirectArena > 0) {
directArenas = newArenaArray(nDirectArena);
for (int i = 0; i < directArenas.length; i ++) {
directArenas[i] = new PoolArena.DirectArena(this, pageSize, maxOrder, pageShifts, chunkSize);