-
Notifications
You must be signed in to change notification settings - Fork 509
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
Conversation
0766e9d
to
cb00029
Compare
cb00029
to
03b9a53
Compare
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
There was a problem hiding this 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");
Codecov ReportAttention:
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 |
03b9a53
to
4f3473f
Compare
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @grom72)
Requires:
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)