You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by "kezhuw (via GitHub)" <gi...@apache.org> on 2023/08/16 13:35:31 UTC
[GitHub] [zookeeper] kezhuw commented on a diff in pull request #2043: ZOOKEEPER-4730: Incorrect datadir and logdir size reported from admin and and 4lw dirs command
kezhuw commented on code in PR #2043:
URL: https://github.com/apache/zookeeper/pull/2043#discussion_r1295909476
##########
zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java:
##########
@@ -664,7 +664,7 @@ public long getLogDirSize() {
if (zkDb == null) {
return 0L;
}
- File path = zkDb.snapLog.getSnapDir();
+ File path = zkDb.snapLog.getDataDir();
Review Comment:
I think it is a good to rename `getDataDir` to something like `getLogDir` or `getDataLogDir`. I saw `dumpConf` prints it as `dataLogDir`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org