BackendRuntimeContext序列化时不应当继承subscriberId

This commit is contained in:
Xu Chang 2025-05-19 17:22:06 +08:00
parent 5978e68721
commit f31523ba18
3 changed files with 4 additions and 3 deletions

View File

@ -17,7 +17,7 @@ export class BackendRuntimeContext extends AsyncContext {
}
async getSerializedData() {
return {
sid: this.subscriberId,
// sid: this.subscriberId,
be: this.be,
ns: this.ns,
};

View File

@ -21,7 +21,7 @@ class BackendRuntimeContext extends AsyncRowStore_1.AsyncContext {
}
async getSerializedData() {
return {
sid: this.subscriberId,
// sid: this.subscriberId,
be: this.be,
ns: this.ns,
};

View File

@ -29,7 +29,8 @@ export abstract class BackendRuntimeContext<ED extends EntityDict & BaseEntityDi
protected async getSerializedData(): Promise<SerializedData> {
return {
sid: this.subscriberId,
// 在后台事务Restart时subscriberId不能跟随此时是在完全后台异步的环境里执行
// sid: this.subscriberId,
be: this.be,
ns: this.ns,
}