From: Arvin Schnell Date: Wed, 4 Jan 2023 09:16:13 +0000 (+0100) Subject: - drop support for boost prior to 1.41 X-Git-Tag: v0.10.5~72^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46170f4ba68154fd47f68715e7f652b9f7bc9b64;p=thirdparty%2Fsnapper.git - drop support for boost prior to 1.41 --- diff --git a/snapper/Btrfs.cc b/snapper/Btrfs.cc index 5e68fceb..bcd9b765 100644 --- a/snapper/Btrfs.cc +++ b/snapper/Btrfs.cc @@ -681,10 +681,6 @@ namespace snapper bool dumper(int fd); -#if BOOST_VERSION < 104100 - bool dumper_ret; -#endif - void do_send(u64 parent_root_id, const vector& clone_sources); }; @@ -1267,19 +1263,11 @@ namespace snapper { y2err("btrfs_read_and_process_send_stream failed " << r); -#if BOOST_VERSION < 104100 - dumper_ret = false; -#endif - return false; } if (r) { -#if BOOST_VERSION < 104100 - dumper_ret = true; -#endif - return true; } @@ -1311,8 +1299,6 @@ namespace snapper io_send.parent_root = parent_root_id; io_send.flags = BTRFS_SEND_FLAG_NO_FILE_DATA; -#if BOOST_VERSION >= 104100 - boost::packaged_task pt(boost::bind(&StreamProcessor::dumper, this, pipefd[0])); boost::unique_future uf = pt.get_future(); @@ -1334,29 +1320,6 @@ namespace snapper { SN_THROW(BtrfsSendReceiveException()); } - -#else - - boost::thread dumper_thread(boost::bind(&StreamProcessor::dumper, this, pipefd[0])); - - fd0_closer.reset(); - - int r2 = ioctl(dir2.fd(), BTRFS_IOC_SEND, &io_send); - if (r2 < 0) - { - y2err("send ioctl failed errno:" << errno << " (" << stringerror(errno) << ")"); - } - - fd1_closer.close(); - - dumper_thread.join(); - - if (r2 < 0 || !dumper_ret) - { - SN_THROW(BtrfsSendReceiveException()); - } - -#endif }