Skip to content

Commit

Permalink
add changelog file path to upToDateFastCheck cache key (#4891)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggwadera authored and rberezen committed Oct 11, 2023
1 parent ff62bdd commit d1e09d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,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 d1e09d7

Please sign in to comment.