Repository navigation
[#1018] Refactored utils aes & compression - #1038
Conversation
|
@jesperpedersen I am unable to reproduce the CI error on my local machine... |
|
@sommye-ctr Are you fully rebased ? |
|
@sommye-ctr Rebase |
| * @return Normalized file type bitmask | ||
| */ | ||
| uint32_t | ||
| pgmoneta_normalize_file_type(uint32_t type); |
There was a problem hiding this comment.
What do we need this for ?
There was a problem hiding this comment.
It was already being used, it is shifted from utils to extraction and now made into static (since it is only being used in extraction.c)
| */ | ||
| int | ||
| pgmoneta_workflow_compress_tablespaces(char* root, int compression_type, struct workers* workers); | ||
|
|
There was a problem hiding this comment.
Do we need one for encryption as well ?
There was a problem hiding this comment.
pgmoneta_encrypt_tablespaces exists in aes.c
|
@sommye-ctr Try and take these comments through the entire patch. PTAL me once it is sorted |
09233b5 to
fd16bc0
Compare
|
@jesperpedersen PTAL |
|
@sommye-ctr We are moving in right direction. The important part is that
all take a You also have to look at - f.ex. what is the difference between So, Yes, in order for this to work in certain cases we have to pass in file extensions that should be skipped - could be a |
|
@sommye-ctr We should expand the DEBUG logging around main.c:926 with all vault sizes, and the number of workers |
|
@sommye-ctr During development set workers to > 0, and make sure that all code paths are using the workers |
|
@sommye-ctr Are you ok on this ? Its a high-priority PR |
Yes, I'll push changes till tomorrow |
|
I have removed the codec specific wal functions and rather used the generic functions from aes & compression. Also added workers in all functions & cleaned up the public functions. |
|
@sommye-ctr Look into if we actually need tablespace specific functions now - is _directory enough ? Maybe we need an iterator on top... |
We could do that, currently we have |
|
@sommye-ctr We should see if we can get to
as the core API |
|
Removed both the encrypt and compress tablespaces function. |
|
@sommye-ctr CI |
|
@jesperpedersen I think the issue is caused by that I had replaced Now there are some exclusions of metadata files by default in directory function but some are missed which cause them to be compressed and then later on the workflow tries to read one of the files (which are compressed) and is unable to read. So to solve this we can pass in the exclude list with a set of meta files in the backup_base, here is the list of files I think that need to be skipped: Are there any other files I am missing that needs to be skipped for compressing/encryption? |
|
@sommye-ctr That should be it |
|
@sommye-ctr We are getting really close now - then I'll do the .c files but they should be ok, if the .h's are |
|
@sommye-ctr So, we need to move some call-sites, like from The wait / outcome checking has to be done in the clients of those APIs - see |
|
Merged. Thanks for your contribution ! |
Resolves #1018
Changes
compression.cutils.htoextraction.h