执行checkpoint,trigger是commit再执行independentCheckPoint
This commit is contained in:
parent
1b925944a8
commit
10c30b83f4
|
|
@ -486,7 +486,10 @@ class TriggerExecutor {
|
|||
async checkpoint(timestamp) {
|
||||
let result = 0;
|
||||
for (const name in this.triggerNameMap) {
|
||||
result += await this.independentCheckPoint(name, timestamp);
|
||||
const trigger = this.triggerNameMap[name];
|
||||
if (trigger && trigger.when === 'commit') {
|
||||
result += await this.independentCheckPoint(name, timestamp);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -598,7 +598,10 @@ export class TriggerExecutor<ED extends EntityDict & BaseEntityDict, Cxt extends
|
|||
async checkpoint(timestamp: number): Promise<number> {
|
||||
let result = 0;
|
||||
for (const name in this.triggerNameMap) {
|
||||
result += await this.independentCheckPoint(name,timestamp);
|
||||
const trigger = this.triggerNameMap[name];
|
||||
if (trigger && trigger.when === 'commit') {
|
||||
result += await this.independentCheckPoint(name, timestamp);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue