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

hxd pushed a commit to branch refactor_bufferwrite_new
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/refactor_bufferwrite_new by 
this push:
     new 0f199b6  bug fix
0f199b6 is described below

commit 0f199b62535cf1a8f91c2c43b122f9e32073c453
Author: xiangdong huang <[email protected]>
AuthorDate: Thu Apr 25 21:44:55 2019 +0800

    bug fix
---
 .../java/org/apache/iotdb/db/engine/tsfiledata/TsFileProcessor.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/iotdb/src/main/java/org/apache/iotdb/db/engine/tsfiledata/TsFileProcessor.java
 
b/iotdb/src/main/java/org/apache/iotdb/db/engine/tsfiledata/TsFileProcessor.java
index 5a1031c..066d4b1 100644
--- 
a/iotdb/src/main/java/org/apache/iotdb/db/engine/tsfiledata/TsFileProcessor.java
+++ 
b/iotdb/src/main/java/org/apache/iotdb/db/engine/tsfiledata/TsFileProcessor.java
@@ -263,7 +263,7 @@ public class TsFileProcessor extends Processor {
 
   protected boolean canWrite(String device, long timestamp) {
     return !lastFlushedTimeForEachDevice.containsKey(device)
-        || timestamp <= lastFlushedTimeForEachDevice.get(device);
+        || timestamp > lastFlushedTimeForEachDevice.get(device);
   }
   /**
    * wrete a ts record into the memtable. If the memory usage is beyond the 
memThreshold, an async

Reply via email to