bareos: master ca0784d7

Author Committer Branch Timestamp Parent
Tad Hunt mvwieringen master 2015-11-10 18:03 master f43c5ffd Pending
Changeset SD: Refactor record write code path.

This commit centralizes the record write state management into the record
write state machine, such that the functions called to convert records
to blocks only mutates the block, and the record write state machine
manages mutation of the record state. One benefit to this approach
is the ability to pass the record to more places as const. This makes
reasoning about record modification straightforward. A second benefit is
a net code reduction due to collapsing the write block header and write
block continuation header functions into a single and simpler function

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
mod - src/stored/block.h Diff File
mod - src/stored/device.c Diff File
mod - src/stored/label.c Diff File
mod - src/stored/protos.h Diff File
mod - src/stored/read.c Diff File
mod - src/stored/record.c Diff File
mod - src/stored/record.h Diff File