/etc/virtual/domain.com/quota has duplicate entries

Version 1.34

Bugfix
Finished

The quota file will aquire duplicate entires if you restore a backup overtop of an account with existing data. The result of this is that changing the quota for a pop account may no longer have any noticeable effect because DA would be changing the value for one record, but showing the other since there are 2. The cause was an optimization in the loading of the quota file at restore time where-by a sort wasn't done until after the read, but since data could exist in both the main quota file, and the bacukp quota file, this was incorrect. The read was changed to use the newer insertion method read, which places each record in order as it reads, which is both fast, and doesn't end up with duplicates.

Interested to try DirectAdmin? Get a 30-day Free Trial!