pilorama: Disallow applying same operations #398

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

1 Commits (master)

Author SHA1 Message Date
Evgenii Stratonikov 307738de18 [#398] pilorama: Disallow applying same operations
ci/woodpecker/pr/pre-commit Pipeline was successful Details
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