Closed th1000s closed 2 years ago
The non-determinism can be observed as follows:
mkdir d; echo foo > d/1; cp d/1 d/2; ln d/1 d/3 and then fclones group d:
mkdir d; echo foo > d/1; cp d/1 d/2; ln d/1 d/3
fclones group d
Which of the two hardlinked files is chosen is random because the ordering inside the BTreeMap changes (on purpose).
BTreeMap
Sorting the file group fixes that.
The non-determinism can be observed as follows:
mkdir d; echo foo > d/1; cp d/1 d/2; ln d/1 d/3
and thenfclones group d
:Which of the two hardlinked files is chosen is random because the ordering inside the
BTreeMap
changes (on purpose).Sorting the file group fixes that.