pmdk icon indicating copy to clipboard operation
pmdk copied to clipboard

Returning no error on ulog check fail

Open janekmi opened this issue 1 year ago • 0 comments

int
lane_check(PMEMobjpool *pop)
{
	int err = 0;
	/* ... */
	for (j = 0; j < pop->nlanes; ++j) {
		/* ... */
		if (ulog_check(/* ... */) != 0) {
			LOG(2, "lane %" PRIu64 " internal redo failed: %d", j, err);
			return err; /* return 0 */
		}
	}
	return 0;
}

Ref: https://github.com/pmem/pmdk/blob/e67b6546107cab6fa975b38b4c0c312ec872d901/src/libpmemobj/lane.c#L419

janekmi avatar Jan 31 '24 12:01 janekmi