Skip to content

Commit 23d16b8

Browse files
authored
Merge pull request #694 from akto-api-security/hotfix/db_state_rebuild
clear dbState before filling it up
2 parents fc87c30 + e2d0121 commit 23d16b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/api-runtime/src/main/java/com/akto/runtime/APICatalogSync.java

+2
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,8 @@ public void buildFromDB(boolean calcDiff, boolean fetchAllSTI) {
11671167
allParams = SingleTypeInfoDao.instance.fetchStiOfCollections(apiCollectionIds);
11681168
}
11691169
loggerMaker.infoAndAddToDb("Fetched STIs count: " + allParams.size(), LogDb.RUNTIME);
1170+
this.dbState.clear();
1171+
loggerMaker.infoAndAddToDb("Starting building dbState", LogDb.RUNTIME);
11701172
this.dbState = build(allParams);
11711173
loggerMaker.infoAndAddToDb("Done building dbState", LogDb.RUNTIME);
11721174
this.sensitiveParamInfoBooleanMap = new HashMap<>();

0 commit comments

Comments
 (0)