修复主从交互bug

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-09-23 03:50:27 +08:00
parent ca64b708ac
commit b65b860b98
55 changed files with 233 additions and 119 deletions

View File

@@ -148,7 +148,6 @@ namespace JNGame.Sync.System.Data
if (NodeContext.Query(child.Key) is null)
{
Delete(child.Key);
return;
}
//主动更新
@@ -179,7 +178,7 @@ namespace JNGame.Sync.System.Data
{
var entity = NodeContext.Query(keyValue.Key);
//给从服务器发送数据
if (IsMaster && entity is not null && entity.IsSyncSlave)
if (IsMaster && ((entity is not null && entity.IsSyncSlave) || keyValue.Value == SDByteOperate.Delete))
{
slave[keyValue.Key] = keyValue.Value;
}