Skip to main content

obj_integrity_check

Function obj_integrity_check 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn obj_integrity_check( db: *mut obj_db_t, out_report: *mut *mut obj_integrity_report_t, ) -> obj_error_t
Expand description

Run the full bidirectional integrity walk against db. Returns the report through *out_report. On OBJ_OK the report holds the walk’s outcome (the caller checks is_ok via obj_integrity_report_is_ok); on OBJ_ERR_INTEGRITY the walk completed but found at least one failure. Any I/O / engine error during the walk surfaces as a different error code with *out_report set to NULL.

§Safety

  • db must be a live db handle.
  • out_report must be a writable obj_integrity_report_t *.