You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2019/02/28 09:25:54 UTC
[GitHub] jt2594838 commented on a change in pull request #78: [IOTDB-30]Bug
fix: use two maps to avoid getting wrong FileReader
jt2594838 commented on a change in pull request #78: [IOTDB-30]Bug fix: use two maps to avoid getting wrong FileReader
URL: https://github.com/apache/incubator-iotdb/pull/78#discussion_r261107912
##########
File path: iotdb/src/main/java/org/apache/iotdb/db/query/control/FileReaderManager.java
##########
@@ -47,22 +47,26 @@
private static final int MAX_CACHED_FILE_SIZE = 30000;
/**
- * the key of fileReaderMap is the file path and the value of fileReaderMap is the corresponding
+ * the key of closedFileReaderMap is the file path and the value of closedFileReaderMap is the corresponding
* reader.
*/
- private ConcurrentHashMap<String, TsFileSequenceReader> fileReaderMap;
+ private ConcurrentHashMap<String, TsFileSequenceReader> closedFileReaderMap;
+ private ConcurrentHashMap<String, TsFileSequenceReader> unclosedFileReaderMap;
Review comment:
added
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services