Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
seawinde committed Aug 30, 2024
1 parent a58fa5f commit 8bf2b60
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ protected List<Plan> doRewrite(StructInfo queryStructInfo, CascadesContext casca
materializationContext.tryReGenerateScanPlan(cascadesContext);
// if rewrite successfully, try to get mv read lock to avoid data inconsistent
if (materializationContext instanceof AsyncMaterializationContext && !materializationContext.isSuccess()) {
// Need get mtmv read lock, to avoid the data of plan which use mv is wrong
cascadesContext.getStatementContext()
.addTableReadLock(((AsyncMaterializationContext) materializationContext).getMtmv());
}
Expand Down

0 comments on commit 8bf2b60

Please sign in to comment.