pilorama: Disallow applying same operations #398

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:fix-tree-sync-master into master 2023-05-26 12:14:30 +00:00

1 commit

Author SHA1 Message Date
307738de18 [#398] pilorama: Disallow applying same operations
All checks were successful
ci/woodpecker/pr/pre-commit Pipeline was successful
1. In redo() we save the old state.
2. If we do redo() for the same operation twice, the old state will be
   overritten with the new one.
3. This in turn affects undo() and subsequent isAncestor() check.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-05-26 12:43:14 +03:00