diffColdReplay()
function diffColdReplay(replayed, actual): readonly ColdReplayMismatch[];
Defined in: packages/rxdb-plugin-working-tree/src/working-tree/cold-replay.ts:303
比对重放结果与业务表实际内容
Parameters
| Parameter | Type | Description |
|---|---|---|
replayed | ColdReplaySnapshot | replayWorkingTree 的结果 |
actual | ColdReplaySnapshot | 业务表里读出来的实际内容 |
Returns
readonly ColdReplayMismatch[]
全部差异;相等时为空数组
Remarks
两个方向都是缺陷:业务表变了而没有单元(field_mismatch 或 business_only_row)说明挂载点
漏了;有单元而业务表没那一行(replay_only_row)说明捕获写了不该写的。只查其中一个方向的判据,
会把另一半故障判成通过。
两侧的行顺序不参与比对。