Skip to content

Commit

Permalink
ZOOKEEPER-4703: Datadir and DatalogDir size are incorrect
Browse files Browse the repository at this point in the history
Author: SiyaoIsHiding
Closes apache#2060 from SiyaoIsHiding/ZOOKEEPER-4703
SiyaoIsHiding authored and AlphaCanisMajoris committed Mar 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8401344 commit 40254d6
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -655,7 +655,7 @@ public long getDataDirSize() {
if (zkDb == null) {
return 0L;
}
File path = zkDb.snapLog.getDataDir();
File path = zkDb.snapLog.getSnapDir();
return getDirSize(path);
}

@@ -664,7 +664,7 @@ public long getLogDirSize() {
if (zkDb == null) {
return 0L;
}
File path = zkDb.snapLog.getSnapDir();
File path = zkDb.snapLog.getDataDir();
return getDirSize(path);
}

Original file line number Diff line number Diff line change
@@ -51,10 +51,10 @@
*/
public class FileTxnSnapLog {

//the directory containing the
//the directory containing
//the transaction logs
final File dataDir;
//the directory containing the
//the directory containing
//the snapshot directory
final File snapDir;
TxnLog txnLog;

0 comments on commit 40254d6

Please sign in to comment.