mirror of https://github.com/apache/kafka.git
MINOR: Remove unnecessary check in ReplicaManager (#20588)
`setTopics` is executed at before, so the check is unnecessary. Reviewers: Ken Huang <s7133700@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
97c8c6b595
commit
f4e00e9cf0
|
@ -1261,11 +1261,11 @@ class ReplicaManager(val config: KafkaConfig,
|
|||
}
|
||||
|
||||
val describeLogDirsResult = new DescribeLogDirsResponseData.DescribeLogDirsResult()
|
||||
.setLogDir(absolutePath).setTopics(topicInfos)
|
||||
.setLogDir(absolutePath)
|
||||
.setTopics(topicInfos)
|
||||
.setErrorCode(Errors.NONE.code)
|
||||
.setTotalBytes(totalBytes).setUsableBytes(usableBytes)
|
||||
if (!topicInfos.isEmpty)
|
||||
describeLogDirsResult.setTopics(topicInfos)
|
||||
.setTotalBytes(totalBytes)
|
||||
.setUsableBytes(usableBytes)
|
||||
describeLogDirsResult
|
||||
|
||||
} catch {
|
||||
|
|
Loading…
Reference in New Issue