You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2023/04/21 09:56:00 UTC

[iotdb] branch multi_dir_change_to_seq updated: suggest to use 0.05 ratio to judgement

This is an automated email from the ASF dual-hosted git repository.

xingtanzjr pushed a commit to branch multi_dir_change_to_seq
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/multi_dir_change_to_seq by this push:
     new bd1de75af8 suggest to use 0.05 ratio to judgement
bd1de75af8 is described below

commit bd1de75af8e4770d7dd45299593f32f17925729d
Author: Jinrui.Zhang <xi...@gmail.com>
AuthorDate: Fri Apr 21 17:55:48 2023 +0800

    suggest to use 0.05 ratio to judgement
---
 .../src/main/java/org/apache/iotdb/commons/utils/JVMCommonUtils.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/node-commons/src/main/java/org/apache/iotdb/commons/utils/JVMCommonUtils.java b/node-commons/src/main/java/org/apache/iotdb/commons/utils/JVMCommonUtils.java
index f730eeb34a..aa84965997 100644
--- a/node-commons/src/main/java/org/apache/iotdb/commons/utils/JVMCommonUtils.java
+++ b/node-commons/src/main/java/org/apache/iotdb/commons/utils/JVMCommonUtils.java
@@ -61,6 +61,7 @@ public class JVMCommonUtils {
   }
 
   public static boolean hasSpace(String dir) {
+    // TODO: use ratio to judgement ?
     return getUsableSpace(dir) > 0;
   }