return nodes;
}
- const string source_snapshot_dir(const BackupConfig& backup_config,
- unsigned int num)
+ string source_snapshot_dir(const BackupConfig& backup_config, unsigned int num)
{
return backup_config.source_path + "/" SNAPSHOTS_NAME "/" + to_string(num);
}
- const string target_snapshot_dir(const BackupConfig& backup_config,
- unsigned int num)
+ string target_snapshot_dir(const BackupConfig& backup_config, unsigned int num)
{
return backup_config.target_path + "/" + to_string(num);
}
target_state = TargetState::MISSING;
}
- const pair<const TheBigThing::CopySpec, const TheBigThing::CopySpec>
+ pair<TheBigThing::CopySpec, TheBigThing::CopySpec>
TheBigThing::make_copy_specs(const BackupConfig& backup_config,
const TheBigThings& the_big_things,
CopyMode copy_mode) const
* the specified `copy_mode`. The function returns a pair containing the source
* and destination copy specifications.
*/
- const pair<const CopySpec, const CopySpec>
- make_copy_specs(const BackupConfig& backup_config,
- const TheBigThings& the_big_things, CopyMode copy_mode) const;
+ pair<CopySpec, CopySpec> make_copy_specs(const BackupConfig& backup_config,
+ const TheBigThings& the_big_things,
+ CopyMode copy_mode) const;
void copy(const BackupConfig& backup_config, TheBigThings& the_big_things,
const pair<CopySpec, CopySpec>& copy_specs);