Re: Streamlined application/script development [Re: coding an Application in perl]

Chapman Flack <[email protected]> Fri, 1 Sep 2017 10:23:33 -0400
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
On 09/01/2017 10:00 AM, Jean-Louis Martineau wrote:
> 
> I'm working on a new features where the command_backup will get feedback
> from the server to get a confirmation the backup is secured on
> holdingdisk/tape.
> Updating the statefile must be done after that.
> 
> To ease the merge, can you split inner_backup in two methods:
> inner_backup() and backup_update_state()
> command_backup should call them sequentially for now.

Maybe even easier, as update_local_state() and write_local_state()
are already split (update only changes in-memory data), could just
have command_backup call inner_backup and then write_local_state
(if --record was requested). Application author still only has to
write inner_backup and it still calls update_local_state, but
no longer calls write_local_state.

-Chap