Skip to content

Commit

Permalink
Add changelog file path to upToDateFastCheck cache key (#4891) (#5039)
Browse files Browse the repository at this point in the history
add changelog file path to upToDateFastCheck cache key (#4891)
  • Loading branch information
ggwadera committed Oct 18, 2023
1 parent 1b51f96 commit b6ae145
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ protected List<ChangeSetFilter> getStandardChangelogIteratorFilters(Database dat
private final Map<String, Boolean> upToDateFastCheck = new ConcurrentHashMap<>();

public boolean isUpToDateFastCheck(CommandScope commandScope, Database database, DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException {
String cacheKey = String.format("%s/%s/%s/%s/%s", contexts, labelExpression, database.getDefaultSchemaName(), database.getDefaultCatalogName(), database.getConnection().getURL());
String cacheKey = String.format("%s/%s/%s/%s/%s/%s", contexts, labelExpression, database.getDefaultSchemaName(), database.getDefaultCatalogName(), database.getConnection().getURL(), databaseChangeLog.getLogicalFilePath());
if (!upToDateFastCheck.containsKey(cacheKey)) {
ChangeLogHistoryService changeLogService = Scope.getCurrentScope().getSingleton(ChangeLogHistoryServiceFactory.class).getChangeLogService(database);
try {
Expand Down

0 comments on commit b6ae145

Please sign in to comment.