Skip to content

[#551] Enable workers for incremental backup combine - #583

Merged
Jubilee101 merged 1 commit into
pgmoneta:mainfrom
Jubilee101:incr
Apr 8, 2025
Merged

Jubilee101 merged 1 commit into
pgmoneta:mainfrom
Jubilee101:incr

Conversation

@Jubilee101

Copy link
Copy Markdown
Member

No description provided.

@Jubilee101 Jubilee101 self-assigned this Apr 7, 2025
@jesperpedersen jesperpedersen added the enhancement Improvement to an existing feature label Apr 7, 2025
Comment thread src/include/deque.h
* @param deque The deque
*/
void
pgmoneta_deque_set_thread_safe(struct deque* deque);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do we need this ? its _create(true, ...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

Comment thread src/libpgmoneta/restore.c
do_reconstruct_backup_file(struct worker_common* wc);

static void
create_reconstruct_backup_file_input(int server,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we wait for _load / _save ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is just for creating input for workers, not backup.info related... We can do another round with the naming and stuff though.

Comment thread src/libpgmoneta/restore.c

error:
pgmoneta_art_destroy(prior_backups);
if (number_of_workers > 0)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

destroy should work on NULL, no ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Maybe, I'm just copying over. It's written this way in other places.

Comment thread src/libpgmoneta/restore.c
goto error;
}
input->common.workers->outcome = true;
free(input);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

?

Comment thread src/libpgmoneta/restore.c
{
goto error;
}
free(input);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

?

@Jubilee101
Jubilee101 force-pushed the incr branch 6 times, most recently from fbc05dd to f469b75 Compare April 7, 2025 19:07
@Jubilee101
Jubilee101 merged commit 7a7d01f into pgmoneta:main Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement to an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants