Skip to content

Commit

Permalink
improve tempfilesize report
Browse files Browse the repository at this point in the history
  • Loading branch information
claeis committed Apr 14, 2023
1 parent 7f87e74 commit 590fb07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ch/ehi/iox/objpool/impl/BTreeImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public void close()
if(outFile!=null){
try {
String tag=(poolName!=null?poolName:this.getClass().getSimpleName())+" VAL";
EhiLogger.traceState(tag+": size "+outFile.length()+" <"+outFilename.getPath()+">");
EhiLogger.traceState(tag+": valueSize "+minValueSize+", "+maxValueSize);
EhiLogger.traceState(tag+": filesize "+outFile.length()+" <"+outFilename.getPath()+">");
EhiLogger.traceState(tag+": valueSize min "+minValueSize+", max "+maxValueSize);
outFile.close();
} catch (IOException e) {
throw new IllegalStateException(e);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/ehi/iox/objpool/impl/ObjPoolImpl2.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void close()
}
if(outFile!=null){
try {
EhiLogger.traceState((poolName!=null?poolName:this.getClass().getSimpleName())+": size "+outFile.length()+" <"+outFilename.getPath()+">");
EhiLogger.traceState((poolName!=null?poolName:this.getClass().getSimpleName())+": filesize "+outFile.length()+" <"+outFilename.getPath()+">");
outFile.close();
} catch (IOException e) {
throw new IllegalStateException(e);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/ch/ehi/iox/objpool/impl/btree/BTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ public void close() throws IOException {
if(file!=null){
String tag=(poolName!=null?poolName:this.getClass().getSimpleName());
EhiLogger.traceState(tag+": size "+size()+", filesize "+file.length()+" <"+fileName.getPath()+">");
EhiLogger.traceState(tag+": keySize "+minKeySize+", "+maxKeySize);
EhiLogger.traceState(tag+": valueSize "+minValueSize+", "+maxValueSize);
EhiLogger.traceState(tag+": keySize min "+minKeySize+", max "+maxKeySize);
EhiLogger.traceState(tag+": valueSize min "+minValueSize+", max "+maxValueSize);
file.close();
file=null;
}
Expand Down

0 comments on commit 590fb07

Please sign in to comment.