Repository navigation
[#551] Enable workers for incremental backup combine - #583
Merged
Merged
Conversation
jesperpedersen
requested changes
Apr 7, 2025
| * @param deque The deque | ||
| */ | ||
| void | ||
| pgmoneta_deque_set_thread_safe(struct deque* deque); |
Member
There was a problem hiding this comment.
Why do we need this ? its _create(true, ...
Member
Author
There was a problem hiding this comment.
Yeah it's a little ad-hoc. The deque is inside json so it's not created with thread safe set and can only be set later. We can revisit this if we have more use cases as such.
| do_reconstruct_backup_file(struct worker_common* wc); | ||
|
|
||
| static void | ||
| create_reconstruct_backup_file_input(int server, |
Member
There was a problem hiding this comment.
Should we wait for _load / _save ?
Member
Author
There was a problem hiding this comment.
This is just for creating input for workers, not backup.info related... We can do another round with the naming and stuff though.
|
|
||
| error: | ||
| pgmoneta_art_destroy(prior_backups); | ||
| if (number_of_workers > 0) |
Member
There was a problem hiding this comment.
destroy should work on NULL, no ?
Member
Author
There was a problem hiding this comment.
Maybe, I'm just copying over. It's written this way in other places.
| goto error; | ||
| } | ||
| input->common.workers->outcome = true; | ||
| free(input); |
| { | ||
| goto error; | ||
| } | ||
| free(input); |
Jubilee101
force-pushed
the
incr
branch
6 times, most recently
from
April 7, 2025 19:07
fbc05dd to
f469b75
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.