wshao08 commented on a change in pull request #1732: URL: https://github.com/apache/incubator-iotdb/pull/1732#discussion_r495514333
########## File path: server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileProcessor.java ########## @@ -226,17 +229,18 @@ public void insertTablet(InsertTabletPlan insertTabletPlan, int start, int end, * <p> * Delete data in both working MemTable and flushing MemTables. */ - public void deleteDataInMemory(Deletion deletion) { + public void deleteDataInMemory(Deletion deletion) throws MetadataException { flushQueryLock.writeLock().lock(); if (logger.isDebugEnabled()) { logger .debug(FLUSH_QUERY_WRITE_LOCKED, storageGroupName, tsFileResource.getTsFile().getName()); } try { - if (workMemTable != null) { - workMemTable - .delete(deletion.getDevice(), deletion.getMeasurement(), deletion.getStartTime(), - deletion.getEndTime()); + for (PartialPath p : IoTDB.metaManager.getAllTimeseriesPath(deletion.getPath())) { Review comment: Fixed ########## File path: server/src/main/java/org/apache/iotdb/db/metadata/PartialPath.java ########## @@ -99,6 +105,41 @@ public PartialPath concatNode(String node) { return nodes; } + public int getNodeLength() { + return nodes.length; + } + + public PartialPath alterPrefixPath(PartialPath prefixPath) { Review comment: Added ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org