Conversation
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
3b9aca4 to
f760edf
Compare
janekmi
left a comment
There was a problem hiding this comment.
@janekmi reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @grom72 and @osalyk)
src/libpmemobj/memblock.c line 1185 at r1 (raw file):
*(hdr + size_idx - 1) = f; /* no need to persist, footers are recreated in heap_populate_buckets */ VALGRIND_SET_CLEAN(hdr + size_idx - 1, sizeof(f));
Do we still need this one?
osalyk
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @grom72 and @janekmi)
src/libpmemobj/memblock.c line 1185 at r1 (raw file):
Previously, janekmi (Jan Michalski) wrote…
Do we still need this one?
grom72
left a comment
There was a problem hiding this comment.
@grom72 reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @janekmi)
grom72
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @janekmi)
janekmi
left a comment
There was a problem hiding this comment.
@janekmi reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @osalyk)
src/libpmemobj/memblock.c line 1185 at r1 (raw file):
*(hdr + size_idx - 1) = f; /* no need to persist, footers are recreated in heap_populate_buckets */ VALGRIND_SET_CLEAN(hdr + size_idx - 1, sizeof(f));
- It would be better keep two "ignore" calls together and have a common description for both of them. But I have a suspicion the TX-related call has to be done before the memory is modified, hasn't it? 😉
- The comment you proposed sounds a lot more sophisticated but I could not find the source of the terms you used and I do not want to introduce new terms like "persistent storage" or "transactional storage". It is very important to use one vocabulary across the codebase. The comment I propose below is a simple extension of the comment which was already here. But I am happy to discuss it further.
Suggestion:
*(hdr + size_idx - 1) = f;
/*
* no need to add to a transaction nor persist, footers are recreated in
* heap_populate_buckets
*/
VALGRIND_ADD_TO_GLOBAL_TX_IGNORE(hdr + size_idx - 1, sizeof(f));
VALGRIND_SET_CLEAN(hdr + size_idx - 1, sizeof(f));Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
osalyk
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @grom72 and @janekmi)
src/libpmemobj/memblock.c line 1185 at r1 (raw file):
Previously, janekmi (Jan Michalski) wrote…
- It would be better keep two "ignore" calls together and have a common description for both of them. But I have a suspicion the TX-related call has to be done before the memory is modified, hasn't it? 😉
- The comment you proposed sounds a lot more sophisticated but I could not find the source of the terms you used and I do not want to introduce new terms like "persistent storage" or "transactional storage". It is very important to use one vocabulary across the codebase. The comment I propose below is a simple extension of the comment which was already here. But I am happy to discuss it further.
Done.
janekmi
left a comment
There was a problem hiding this comment.
@janekmi reviewed 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @osalyk)
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>

https://github.com/daos-stack/pmdk/actions/runs/20145268034

This change is