Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pmemobj error via ERR() instead of LOG(1,... #5967

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

grom72
Copy link
Contributor

@grom72 grom72 commented Jan 19, 2024

@grom72 grom72 added sprint goal This pull request is part of the ongoing sprint no changelog Add to skip the changelog check on your pull request labels Jan 19, 2024
@grom72 grom72 force-pushed the pmemobj-error-via-ERR branch 3 times, most recently from 0766e9d to cb00029 Compare January 22, 2024 06:55
@grom72 grom72 mentioned this pull request Jan 25, 2024
1 task
@grom72 grom72 marked this pull request as ready for review January 26, 2024 11:00
@grom72 grom72 requested a review from janekmi January 29, 2024 17:03
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
Copy link
Contributor

@janekmi janekmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @grom72)


src/libpmemobj/tx.c line 2230 at r1 (raw file):

	ERR_WO_ERRNO("tx.cache.threshold parameter is deprecated");

	return 0;

Suggestion:

return -1;

src/libpmemobj/tx.c line 2245 at r1 (raw file):

	ERR_WO_ERRNO("tx.cache.threshold parameter is deprecated");

	return 0;

Suggestion:

return -1;

src/libpmemobj/ulog.c line 672 at r1 (raw file):

			&u->next) != 0) {
			/* this is fine, it will just use more pmem */
			ERR_WO_ERRNO("unable to free transaction logs memory");

It seems to continue with no consequences. It is hard to call this one even a warning TBH.

Code quote:

			/* this is fine, it will just use more pmem */
			ERR_WO_ERRNO("unable to free transaction logs memory");

Copy link

codecov bot commented Jan 29, 2024

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (6a9fea9) 68.50% compared to head (4f3473f) 68.51%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5967      +/-   ##
==========================================
+ Coverage   68.50%   68.51%   +0.01%     
==========================================
  Files         133      133              
  Lines       19650    19650              
  Branches     3260     3260              
==========================================
+ Hits        13462    13464       +2     
+ Misses       6188     6186       -2     

Copy link
Contributor Author

@grom72 grom72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 1 of 3 files reviewed, 3 unresolved discussions (waiting on @janekmi)


src/libpmemobj/tx.c line 2230 at r1 (raw file):

	ERR_WO_ERRNO("tx.cache.threshold parameter is deprecated");

	return 0;

Done.


src/libpmemobj/tx.c line 2245 at r1 (raw file):

	ERR_WO_ERRNO("tx.cache.threshold parameter is deprecated");

	return 0;

Done.


src/libpmemobj/ulog.c line 672 at r1 (raw file):

Previously, janekmi (Jan Michalski) wrote…

It seems to continue with no consequences. It is hard to call this one even a warning TBH.

Done.

Copy link
Contributor

@janekmi janekmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @grom72)

@grom72 grom72 merged commit caa911e into pmem:master Jan 29, 2024
7 of 8 checks passed
@grom72 grom72 deleted the pmemobj-error-via-ERR branch February 15, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Add to skip the changelog check on your pull request sprint goal This pull request is part of the ongoing sprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants