Commit Graph
3831 Commits
Author SHA1 Message Date
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
Yura Sokolov 2df87a0e14 [PBCKP-416] catalog_get_backup_list - use pioOpenDir/pioDirNext 2022-12-18 21:32:44 +03:00
Yura Sokolov 17badb0c26 Revert "PBCKP-415 use pio for catalog_get_backup_list"
This reverts commit f0215bbcc4.
2022-12-18 21:32:44 +03:00
Yura Sokolov e79e5f0728 [PBCKP-416] pioOpenDir + pioDirNext
Looks like pioListDir were no so great idea. Step to return to iterator
style.
2022-12-18 21:32:44 +03:00
Yura Sokolov abdfdd2777 ft_strbuf_cat_path 2022-12-18 21:32:21 +03:00
Yura Sokolov d2843d0a11 fix for fio_receive_pio_err 2022-12-18 21:32:15 +03:00
Yura Sokolov 5341b9d0a7 remove pioAsyncWrite/pioAsyncError 2022-12-18 21:32:04 +03:00
Yura Sokolov 133c2275d5 fix cleanup_tablespace: it is for DB, not for BACKUP 2022-12-18 16:39:32 +03:00
Yura Sokolov 04c3159edf ft_utils: more useful staff. 2022-12-18 16:39:32 +03:00
Yura Sokolov 6bfdc0b024 adapt fobj missing argument compile-time error generation
And it actually found error in data.c.
2022-12-18 01:33:58 +03:00
Yura Sokolov bce53bbd31 fu_util/fobj: make missing argument compilation error 2022-12-18 01:33:38 +03:00
Yura Sokolov 33f7c10d2d fix clang warning about format(gnu_printf) 2022-12-18 01:33:38 +03:00
Yura Sokolov d0d06f3e91 fix ft_strbuf_ensure for zero-initialized ft_strbuf_t 2022-12-18 01:32:08 +03:00
Yura Sokolov 47de7fea75 ft_util: easier to parse and compose from C structs
FT_BYTES_FOR - bytes buffer for variable
ft_bytes_dup - alloc copy of bytes
ft_bytes_shift_to/shift_must - cut to bytes from the beginning.
2022-12-18 01:31:56 +03:00
Yura Sokolov 2b274c7a6a move pioRename from pioDrive to pioDBDrive
it has single invocation in archive.c to move "<WAL>.ready" to "<WAL>.done"
on database host.
2022-12-17 19:47:45 +03:00
Yura Sokolov 0852bf9abe [PBCKP-417] move sync paramter from pioClose to pioOpenWrite/Rewrite
pioClose was not so comfortable place for. We always know at the file
opening will it be sync or not.
2022-12-17 02:21:37 +03:00
Yura Sokolov eaead56049 use ft_strbuf_catc_zt + ft_bytes_shift_zt 2022-12-17 01:34:17 +03:00
Yura Sokolov 61c4d90316 ft_strbuf_cat_zt and ft_bytes_shift_str to easier remote operations 2022-12-17 01:28:19 +03:00
Yura Sokolov 81e2f7fe75 [PBCKP-416] do_catchup calls db_list_dir with backup_logs = false. 2022-12-16 23:22:14 +03:00
Sergey FukanchikandYuriy Sokolov f0215bbcc4 PBCKP-415 use pio for catalog_get_backup_list 2022-12-16 16:26:08 +00:00
Yura Sokolov 68113e38d8 fu_utils: add test for correct thread termination 2022-12-16 02:20:49 +03:00
Yura Sokolov f8fbbbbed3 ... 2022-12-16 01:57:41 +03:00
Yura Sokolov 47e21044c8 Merge branch 'REL_2_5' into REL_2_6 2022-12-15 22:52:12 +03:00
Yura Sokolov 764680e23f Merge branch 'REL_2_5' 2.5.11 2022-12-15 22:47:46 +03:00
Sergey Fukanchik 4b46382014 fix error message in merge_test 2022-12-15 19:31:12 +03:00
Yura Sokolov b84bed3ecb fix Makefile 2022-12-15 19:01:03 +03:00
Yura Sokolov dcf90d689c merge.c: unused buffer 2022-12-15 18:59:16 +03:00
Yura Sokolov 401bccf0b7 fu_util/fobj: fix autorelease pool cleanup in glibc
glibc's pthread_exit runs stack unwinding for C++ destructor's handling,
and calls destructors for pthread specifics only after unwinding.

This way fobj_destroy_thread_AR is called too lately.

We have to compile with '-fexception' to register all our
attribute((cleanup)) for autorelease pools as "C++ desctructors".

Found in debug session with Sergey Fucanchik <s.fukanchik@postgrespro.ru>
2022-12-15 18:57:40 +03:00
e.garbuz bbe41a403d Fix tests test_restore_from_fullbackup_to_new_location and test_restore_from_fullbackup_to_new_location_5_jobs 2022-12-15 13:37:15 +03:00
Yura Sokolov 8efe4d4bc7 remove fio fd-style functions and gzFile-style functions as unused 2022-12-15 11:13:15 +03:00
Yura Sokolov 692f0c0e7b SimpleXlogPageRead: replace fileExists with pioExists 2022-12-15 11:02:01 +03:00