Commit Graph
3861 Commits
Author SHA1 Message Date
Yura Sokolov f8d010b21d rename pio_recursive_dir_t -> pioRecursiveDir
pioRecursiveDir is really an object, so pio_recursive_dir_free were quite
misleading.
2022-12-22 01:36:43 +03:00
Yura Sokolov d15d34bdb5 fix setting LC_TIME 2022-12-22 01:16:30 +03:00
Yura Sokolov 54602f1a55 set LC_TIME to C as well
private branch uses strptime to parse "always C locale" time.
2022-12-22 00:44:36 +03:00
Yura Sokolov efb5cf7793 ... 2022-12-21 23:16:14 +03:00
Sergey FukanchikandYura Sokolov 1a2cd71840 PBCKP-80 cleanup test 2022-12-21 22:54:47 +03:00
Sergey FukanchikandYura Sokolov f61171c12e PBCKP-80 More unit test improvements 2022-12-21 13:09:00 +03:00
Sergey FukanchikandYura Sokolov 7365f24bc5 PBCKP-80 Add unit tests 2022-12-21 12:43:53 +03:00
Sergey FukanchikandYura Sokolov c77b50b7b1 PBCKP-80 add catalog_new for tests 2022-12-21 10:58:54 +03:00
Yura Sokolov 76bbd0401b ... 2022-12-21 10:58:38 +03:00
Yura Sokolov d29a8d4c54 fix "Cleanup CFS breadcrumbs" 2022-12-21 08:19:20 +03:00
Yura Sokolov d50c60b7db fix build with Pg < 12 2022-12-21 07:56:01 +03:00
Alexander BurtsevandViktoria Shepard 9c8afba8da Cleanup CFS breadcrumbs from the CE version source code 2022-12-20 18:40:05 +03:00
Sergey FukanchikandYura Sokolov a46cdfc734 PBCKP-80 rewrite get_data_file_headers to PIO 2022-12-20 15:29:34 +03:00
Sergey FukanchikandYura Sokolov e18f99dde5 PBCKP-80 skip locks for non-local drives 2022-12-20 15:29:25 +03:00
Yura Sokolov 098b5c6b35 artificial main function in main.c file
To introduce C unit tests we separate `main` function into distinct file,
so we may have `main` function in test files.
2022-12-20 12:10:59 +03:00
Yura Sokolov 01c42a4655 remove couple of FIO_LOCAL_HOST 2022-12-20 05:32:48 +03:00
Yura Sokolov b7b71eef72 make pio_helper_pioGetCRC32 to be useful for other pioDrive implementations 2022-12-20 05:22:14 +03:00
Yura Sokolov f91b2256e0 remove all non-pio CRC32 staff + some additional cleanup 2022-12-20 05:03:45 +03:00
Yura Sokolov 5164bb1ea0 remove fio_get_crc32 from restore_non_data_file 2022-12-20 04:55:20 +03:00
Yura Sokolov 5898a66c39 huge fio_location->pioDrive_i refactor (still partial)
I've started with attempt to remove fio_get_crc32 from backup_non_data_file.
It led to huge replacement from fio_location to pioDrive_i.
I didn't want it :-( But it should be done nevertheless.
2022-12-20 04:47:16 +03:00
Yura Sokolov 9673496b47 make pioGetCRC32 to use pioCRC32Counter 2022-12-20 02:59:01 +03:00
Yura Sokolov 7836066053 validate.c: remove direct usage of pgFileGetCRC32C 2022-12-20 02:29:10 +03:00
Yura Sokolov 4cf6270f99 refactor pgFileNew: now it calculates crc by itself
it will reduce calls to pgFileGetCRC32C as well
2022-12-20 02:10:02 +03:00
Yura Sokolov 89b28fe885 remove unused trick in fio_send_file_content_impl 2022-12-20 01:35:01 +03:00
Yura Sokolov 557df03504 remove some no more used staff 2022-12-20 01:31:13 +03:00
Yura Sokolov 7d48f6f620 fix test_page_doesnt_store_unchanged_cfm 2022-12-20 01:18:47 +03:00
Yura Sokolov 54aabfdabb format previous commit a bit 2022-12-20 00:52:36 +03:00
Daniil ShelepanovandYuriy Sokolov 2b11c59e48 [PBCKP-318] rewrite backup_non_data_file to pio. 2022-12-20 00:16:01 +03:00
Yura Sokolov e43dfb47a2 do_init: use pioIsDirEmpty for existance check 2022-12-19 06:05:25 +03:00
Yura Sokolov 44c0d3874a fixup "make do_add_instance more pio friendly" 2022-12-19 05:24:46 +03:00
Yura Sokolov 39de9b8b18 use pioExists(expected_kind = PIO_KIND_DIRECTORY) to check instance path 2022-12-19 05:22:58 +03:00
Yura Sokolov 50b262fbfe make do_add_instance more pio friendly 2022-12-19 05:16:02 +03:00
Yura Sokolov 81b8d0c23e fix ft_strbuf_cat_path 2022-12-19 04:57:44 +03:00
Yura Sokolov e86535e6a0 more remote connection ensuring 2022-12-19 03:48:42 +03:00
Yura Sokolov 43d48110c3 fix test_no_control_file 2022-12-19 03:48:42 +03:00
Yura Sokolov 719cce1b1b ft_str_chop1 - cut 1 byte from string (+ fix ft_str_ends_withc return type) 2022-12-19 03:48:42 +03:00
Yura Sokolov 92495b85d2 [PBCKP-416] PIO_DIR_NEXT: abuse empty entry as stop signal. 2022-12-19 03:48:42 +03:00
Yura Sokolov b4d2d821f2 ft_strbuf_cat_zt - fix for empty string 2022-12-19 03:48:42 +03:00
Yura Sokolov fd3fba7894 [PBCKP-416] db_list_dir: reuse stat from dir iteration 2022-12-19 03:48:42 +03:00
Yura Sokolov 07137a715b [PBCKP-416] remove fio_opendir/fio_readdir/fio_closedir 2022-12-19 03:48:42 +03:00
Yura Sokolov 19c33c9240 [PBCKP-416] fix test_basic_missing_dir_permissions 2022-12-19 03:48:42 +03:00
Yura Sokolov ff779a6e5f [PBCKP-416] rewrite db_list_dir with pio_recursive_dir 2022-12-19 03:48:42 +03:00
Yura Sokolov 7d552c6046 [PBCKP-416] pio_recursive_dir iterator.
Iterator that could recursively walk through dir hierarchy and skip some
subdirectories.
2022-12-19 03:48:42 +03:00
Yura Sokolov 2c756c3397 Revert "[PBCKP-234] proper pioListDir usage" partially
This reverts commit 4ecb11f45d.

It seems it would be easier to change to pioOpenDir with rollback.
But we keep pioRemoveDir usage.
2022-12-19 03:48:42 +03:00
Yura Sokolov dfb5b0dc0d [PBCKP-416] pioLocalDrive_pioRemoveDir to not use pioListDir
yep, this way code is larger. But it self contained.
2022-12-19 03:48:42 +03:00
Yura Sokolov 65fe3d032d [PBCKP-416] use pioOpenDir in archive.c setup_push_filelist 2022-12-19 03:48:42 +03:00
Yura Sokolov f30c94a192 [PBCKP-416] remove backup_list_dir 2022-12-19 03:48:42 +03:00
Yura Sokolov 0d145dac21 [PBCKP-416] use pioOpenDir in catalog_get_timelines 2022-12-19 03:48:42 +03:00
Yura Sokolov f626bba162 [PBCKP-416] pioIsDirEmpty 2022-12-18 21:32:44 +03:00
Yura Sokolov 776b3b5f23 ... 2022-12-18 21:32:44 +03:00