BackendRuntimeContext序列化时不应当继承subscriberId
This commit is contained in:
parent
5978e68721
commit
f31523ba18
|
|
@ -17,7 +17,7 @@ export class BackendRuntimeContext extends AsyncContext {
|
||||||
}
|
}
|
||||||
async getSerializedData() {
|
async getSerializedData() {
|
||||||
return {
|
return {
|
||||||
sid: this.subscriberId,
|
// sid: this.subscriberId,
|
||||||
be: this.be,
|
be: this.be,
|
||||||
ns: this.ns,
|
ns: this.ns,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ class BackendRuntimeContext extends AsyncRowStore_1.AsyncContext {
|
||||||
}
|
}
|
||||||
async getSerializedData() {
|
async getSerializedData() {
|
||||||
return {
|
return {
|
||||||
sid: this.subscriberId,
|
// sid: this.subscriberId,
|
||||||
be: this.be,
|
be: this.be,
|
||||||
ns: this.ns,
|
ns: this.ns,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,8 @@ export abstract class BackendRuntimeContext<ED extends EntityDict & BaseEntityDi
|
||||||
|
|
||||||
protected async getSerializedData(): Promise<SerializedData> {
|
protected async getSerializedData(): Promise<SerializedData> {
|
||||||
return {
|
return {
|
||||||
sid: this.subscriberId,
|
// 在后台事务Restart时,subscriberId不能跟随,此时是在完全后台异步的环境里执行
|
||||||
|
// sid: this.subscriberId,
|
||||||
be: this.be,
|
be: this.be,
|
||||||
ns: this.ns,
|
ns: this.ns,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue