]> source.dussan.org Git - nextcloud-server.git/commit
Improve file_target finding logic when repairing unmerged shares
authorVincent Petry <pvince81@owncloud.com>
Fri, 12 Aug 2016 09:44:34 +0000 (11:44 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 17 Aug 2016 17:38:19 +0000 (19:38 +0200)
commit837dc0b33649d0aa6e676601d393f1f5bc354f40
treeb59377f4f87a4aa0718a4ba33ab794b36270d51b
parent76f19c07757f6d2e35a86131887e6e7d1c4476ac
Improve file_target finding logic when repairing unmerged shares

Pick the most recent subshare that has no parenthesis from duplication
which should match whichever name the user picked last. If all
subshares have duplicate parenthesis names, use the least recent group
share's target instead.
lib/private/Repair/RepairUnmergedShares.php
tests/lib/Repair/RepairUnmergedSharesTest.php