<li><code>--retire</code> no longer fails if a host directory
has already been removed.</li>
+ <li>Fixed recalculation of per-device backup counts, visible as
+ self-inconsistent reports when generated in the same invocation
+ of <code>rsbackup</code> as some other operation.</li>
+
</ul>
<h2>Changes In rsbackup 0.4.1</h2>
-// Copyright © 2011, 2012 Richard Kettlewell.
+// Copyright © 2011-2013 Richard Kettlewell.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
void Volume::calculate() {
completed = 0;
+ for(perdevice_type::iterator it = perDevice.begin();
+ it != perDevice.end();
+ ++it) {
+ Volume::PerDevice &pd = it->second;
+ pd.count = 0;
+ }
for(std::set<Backup *>::const_iterator it = backups.begin();
it != backups.end();
++it) {
pd.newest = s->date;
}
}
+ for(perdevice_type::iterator it = perDevice.begin();
+ it != perDevice.end();
+ ) {
+ perdevice_type::iterator jt = it;
+ ++it;
+ Volume::PerDevice &pd = jt->second;
+ if(!pd.count)
+ perDevice.erase(jt);
+ }
}
void Volume::addBackup(Backup *backup) {