update docs#1054
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1054 +/- ##
==========================================
- Coverage 94.25% 94.09% -0.17%
==========================================
Files 48 48
Lines 4720 4742 +22
==========================================
+ Hits 4449 4462 +13
- Misses 271 280 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @lukaszstolarczuk)
include/libpmemobj++/transaction.hpp, line 456 at r1 (raw file):
https://pmem.io/pmdk/manpages/linux/master/libpmemobj/pmemobj_tx_begin.3 */ enum class stage {
actually I can see we only use it in register_callback... why not elsewhere?
|
include/libpmemobj++/transaction.hpp, line 456 at r1 (raw file): Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
that's really good point :) |
KFilipek
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @lukaszstolarczuk)
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @igchor)
include/libpmemobj++/transaction.hpp, line 456 at r1 (raw file):
Previously, karczex (Paweł Karczewski) wrote…
that's really good point :)
and it seems, such change would be pretty simple sed
@igchor, what do you think? Do you know if there was a reason for not using this...?
include/libpmemobj++/container/concurrent_hash_map.hpp, line 1968 at r2 (raw file):
if (layout_features.incompat != header_features().incompat) throw pmem::layout_error( "Incompat flags mismatch, for more details go to: https://pmem.io/libpmemobj-cpp\n");
hmm I tried to find some better link - what you think, should we put here something more precise...?
|
include/libpmemobj++/container/concurrent_hash_map.hpp, line 1968 at r2 (raw file): Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
Are you sure it's good idea to put link to documentation in error in low level library? |
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @igchor and @karczex)
include/libpmemobj++/container/concurrent_hash_map.hpp, line 1968 at r2 (raw file):
Previously, karczex (Paweł Karczewski) wrote…
Are you sure it's good idea to put link to documentation in error in low level library?
maybe you're right, maybe we should remove this and we have no problem...? :)
so it will be available in the generated docs.
e4fbb27 to
051c696
Compare
KFilipek
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r2, 1 of 1 files at r3.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @igchor, @karczex, and @lukaszstolarczuk)
include/libpmemobj++/pool.hpp, line 457 at r3 (raw file):
Quoted 9 lines of code…
#ifndef _WIN32 /** * Default create mode */ static const int DEFAULT_MODE = S_IWUSR | S_IRUSR; #else /** * Default create mode */
IMO useless change, like this comments which only duplicate variable name.
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @igchor, @karczex, and @KFilipek)
include/libpmemobj++/pool.hpp, line 457 at r3 (raw file):
Previously, KFilipek (Krzysztof Filipek) wrote…
#ifndef _WIN32 /** * Default create mode */ static const int DEFAULT_MODE = S_IWUSR | S_IRUSR; #else /** * Default create mode */IMO useless change, like this comments which only duplicate variable name.
without this change all user can see is in our docs is that we use some DEFAULT_MODE (see: https://pmem.io/libpmemobj-cpp/master/doxygen/classpmem_1_1obj_1_1pool.html#a8c7a780cfb3bc6c708856783938a9e8c ).
With this change they know exactly what this const equals to.
igchor
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r1, 1 of 1 files at r2, 1 of 1 files at r3.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @KFilipek and @lukaszstolarczuk)
include/libpmemobj++/transaction.hpp, line 456 at r1 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
@igchor, what do you think? Do you know if there was a reason for not using this...?
You mean in places where we for example check pmemobj_tx_stage() == TX_STAGE_WORK? It's beacuse pmemobj_tx_stage reutrns an int and we would have to cast the enum. In general, we should implement some C++ method like stage() within the transaction class.
include/libpmemobj++/container/concurrent_hash_map.hpp, line 1968 at r2 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
maybe you're right, maybe we should remove this and we have no problem...? :)
This was done so that to offer some kind of information for users of older libraries. If there is new incompat flag introduced we can add some meanigful message in the new version of the library but for older versions, we cannot - we can only point to some external documenation.
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @KFilipek)
include/libpmemobj++/container/concurrent_hash_map.hpp, line 1968 at r2 (raw file):
Previously, igchor (Igor Chorążewicz) wrote…
This was done so that to offer some kind of information for users of older libraries. If there is new incompat flag introduced we can add some meanigful message in the new version of the library but for older versions, we cannot - we can only point to some external documenation.
ok, thx
KFilipek
left a comment
There was a problem hiding this comment.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @lukaszstolarczuk)
This change is