Sfoglia il codice sorgente

配置文件更新

wenjie 1 anno fa
parent
commit
bb8c41ae65

+ 2 - 3
query-app/src/main/java/db/service/QueryService.java

@@ -108,10 +108,9 @@ public class QueryService {
                 UnknownPacket packet = UnknownPacket.newPacket(item, 0, item.length);
                 dumper.dump(packet);
             }
-
-            dumper.close();
-            handle.close();
         }
+        dumper.close();
+        handle.close();
 
 
         StringBuilder returnLink = new StringBuilder();

+ 5 - 0
query-app/src/main/resources/application.yml

@@ -12,6 +12,11 @@ system:
     prefix: "data/"
     suffix: ".data"
     expire-time: 240 # 小时
+  wal-files:
+    prefix: "data/wal/"
+    suffix: ".wal"
+  retry-times: 3 # 超时次数
+  retry-stamp: 3000 # 超时时间:毫秒
 
 ip:
   broadcast: 192.168.66.255