Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions fe/src/com/baidu/palo/clone/CloneChecker.java
Original file line numberDiff line numberDiff line change
Expand Up@@ -481,10 +481,7 @@ private Map<Level, Set<List<Long>>> initBackendCapacityInfos(Map<Long, BackendIn
}
}

if (backendInfosMap.size() <= 1) {
return null;
}

// maybe backendInfosMap size == 1 when migrate db
// calculate avg used ratio
long totalCapacityB = 0;
long availableCapacityB = 0;
Expand DownExpand Up@@ -564,10 +561,7 @@ private Map<Level, Set<List<Long>>> initBackendDistributionInfos(Map<Long, Backe
}
}

if (backendInfosMap.size() <= 1) {
return null;
}

// maybe backendInfosMap size == 1 when migrate db
// init distributionLevelToBackendIds
Map<Level, Set<List<Long>>> distributionLevelToBackendIds = new HashMap<Level, Set<List<Long>>>();
for (Level level : Level.values()) {
Expand Down
1 change: 1 addition & 0 deletions gensrc/parser/sql_scanner.flex
Original file line numberDiff line numberDiff line change
Expand Up@@ -73,6 +73,7 @@ import com.baidu.palo.common.util.SqlUtils;
keywordMap.put("asc", new Integer(SqlParserSymbols.KW_ASC));
keywordMap.put("authors", new Integer(SqlParserSymbols.KW_AUTHORS));
keywordMap.put("backend", new Integer(SqlParserSymbols.KW_BACKEND));
keywordMap.put("backends", new Integer(SqlParserSymbols.KW_BACKENDS));
keywordMap.put("backup", new Integer(SqlParserSymbols.KW_BACKUP));
keywordMap.put("begin", new Integer(SqlParserSymbols.KW_BEGIN));
keywordMap.put("between", new Integer(SqlParserSymbols.KW_BETWEEN));
Expand Down