SilverNarcissus commented on a change in pull request #2405:
URL: https://github.com/apache/iotdb/pull/2405#discussion_r557353193
##########
File path: server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
##########
@@ -592,8 +717,13 @@ public QueryDataSource query(SingleSeriesExpression
seriesExpression, QueryConte
*/
public int countUpgradeFiles() {
int totalUpgradeFileNum = 0;
- for (StorageGroupProcessor storageGroupProcessor : processorMap.values()) {
- totalUpgradeFileNum += storageGroupProcessor.countUpgradeFiles();
+ for (VirtualStorageGroupManager virtualStorageGroupManager :
processorMap.values()) {
+ for (StorageGroupProcessor storageGroupProcessor :
virtualStorageGroupManager
+ .getAllVirutalStorageGroupProcessor()) {
+ if (storageGroupProcessor != null) {
+ totalUpgradeFileNum += storageGroupProcessor.countUpgradeFiles();
+ }
+ }
Review comment:
fixed~
----------------------------------------------------------------
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:
[email protected]