You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DAOS-17321 ddb: Add checksum dump command to ddb GO code
Add the csum_dump command to the ddb Go CLI, wiring the ddb_run_csum_dump()
C API (added in #18543) through the build-tag CGo stub layer introduced by
#18124:
- Add CsumDump() to DdbContext (commands_wrapper.go): builds the C
csum_dump_options (path, optional dst, epoch) and invokes the C command.
- Add real and stub ddb_run_csum_dump() wrappers (libddb.go /
libddb_stubs.go), following the existing per-command _RC/_Fn hook
pattern used for Go unit testing.
- Register the "csum_dump" command in ddb_commands.go: a required
positional path, an optional positional dst (file to dump the
checksum to; prints to the screen when omitted), and a -e/--epoch
flag (default EPOCH_MAX).
- The epoch selects which version of the checksum to dump: for a
single value akey it is the epoch at or before which the value is
fetched; for an array akey it is the maximal epoch of the visible
record extent(s) to select.
Tests: add TestDdb_Cmds cases for csum_dump covering a missing required
path argument, an invalid flag, the default epoch, the short and long
--epoch forms, a file destination, and a destination combined with a
custom epoch.
Features: recovery
Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@hpe.com>
0 commit comments