Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix build error
  • Loading branch information
caneGuy committed Aug 24, 2017
commit fc184aa535b2bf9cd771739da6ac1bbbec0504c4
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import io.netty.buffer.{ByteBuf, Unpooled}

import org.apache.spark.internal.config
import org.apache.spark.network.util.ByteArrayWritableChannel
import org.apache.spark.SparkEnv
import org.apache.spark.storage.StorageUtils

/**
Expand All @@ -44,7 +45,7 @@ private[spark] class ChunkedByteBuffer(var chunks: Array[ByteBuffer]) {
// Chunk size in bytes
private val bufferWriteChunkSize =
Option(SparkEnv.get).map(_.conf.get(BUFFER_WRITE_CHUNK_SIZE))
.getOrElse(BUFFER_WRITE_CHUNK_SIZE.defaultValue.get)
.getOrElse(config.BUFFER_WRITE_CHUNK_SIZE.defaultValue.get)

private[this] var disposed: Boolean = false

Expand Down