Skip to content

Commit

Permalink
Merge branch 'scylladb:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Comrade88 authored Jan 10, 2025
2 parents df73c5d + 11d1701 commit c8edab2
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 43 deletions.
1 change: 1 addition & 0 deletions include/seastar/core/dpdk_rte.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#ifdef SEASTAR_HAVE_DPDK

#include <bitset>
#include <optional>
#include <rte_config.h>
#include <rte_ethdev.h>
#include <rte_version.h>
Expand Down
28 changes: 0 additions & 28 deletions include/seastar/core/file.hh
Original file line number Diff line number Diff line change
Expand Up @@ -462,20 +462,6 @@ public:
/// if the operation has failed
future<int> fcntl_short(int op, uintptr_t arg = 0UL) noexcept;

/// Set a lifetime hint for the open file descriptor corresponding to seastar::file
///
/// Write lifetime hints can be used to inform the kernel about the relative
/// expected lifetime of writes on a given inode or via open file descriptor.
/// An application may use the different hint values to separate writes into different
/// write classes, so that multiple users or applications running on a single storage back-end
/// can aggregate their I/O patterns in a consistent manner.
/// Refer fcntl(2) man page for more details on write lifetime hints.
///
/// \param hint the hint value of the stream
/// \return future indicating success or failure
[[deprecated("This API was removed from the kernel")]]
future<> set_file_lifetime_hint(uint64_t hint) noexcept;

/// Set a lifetime hint for the inode corresponding to seastar::file
///
/// Write lifetime hints can be used to inform the kernel about the relative
Expand All @@ -489,20 +475,6 @@ public:
/// \return future indicating success or failure
future<> set_inode_lifetime_hint(uint64_t hint) noexcept;

/// Get the lifetime hint of the open file descriptor of seastar::file which was set by
/// \ref set_file_lifetime_hint()
///
/// Write lifetime hints can be used to inform the kernel about the relative
/// expected lifetime of writes on a given inode or via open file descriptor.
/// An application may use the different hint values to separate writes into different
/// write classes, so that multiple users or applications running on a single storage back-end
/// can aggregate their I/O patterns in a consistent manner.
/// Refer fcntl(2) man page for more details on write lifetime hints.
///
/// \return the hint value of the open file descriptor
[[deprecated("This API was removed from the kernel")]]
future<uint64_t> get_file_lifetime_hint() noexcept;

/// Get the lifetime hint of the inode of seastar::file which was set by
/// \ref set_inode_lifetime_hint()
///
Expand Down
2 changes: 1 addition & 1 deletion pkgconfig/seastar-testing.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Version: @PROJECT_VERSION@

# Dependencies.
boost_cflags=-I$<JOIN:@Boost_INCLUDE_DIRS@, -I>
boost_unit_test_libs=@Boost_UNIT_TEST_FRAMEWORK_LIBRARY@
boost_unit_test_libs=$<TARGET_PROPERTY:Boost::unit_test_framework,LOCATION>

# Us.
seastar_testing_cflags=
Expand Down
4 changes: 2 additions & 2 deletions pkgconfig/seastar.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ boost_system_libs=@Boost_SYSTEM_LIBRARY@

# Dependencies.
boost_cflags=-I$<JOIN:@Boost_INCLUDE_DIRS@, -I>
boost_program_options_libs=@Boost_PROGRAM_OPTIONS_LIBRARY@
boost_thread_libs=${boost_system_libs} @Boost_THREAD_LIBRARY@
boost_program_options_libs=$<TARGET_PROPERTY:Boost::program_options,LOCATION>
boost_thread_libs=${boost_system_libs} $<TARGET_PROPERTY:Boost::thread,LOCATION>
c_ares_cflags=-I$<JOIN:@c-ares_INCLUDE_DIRS@, -I>
c_ares_libs=$<JOIN:@c-ares_LIBRARIES@, >
fmt_cflags=-I$<JOIN:$<TARGET_PROPERTY:fmt::fmt,INTERFACE_INCLUDE_DIRECTORIES>, -I>
Expand Down
8 changes: 0 additions & 8 deletions src/core/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1186,10 +1186,6 @@ future<> file::set_lifetime_hint_impl(int op, uint64_t hint) noexcept {
});
}

future<> file::set_file_lifetime_hint(uint64_t hint) noexcept {
return set_lifetime_hint_impl(F_SET_FILE_RW_HINT, hint);
}

future<> file::set_inode_lifetime_hint(uint64_t hint) noexcept {
return set_lifetime_hint_impl(F_SET_RW_HINT, hint);
}
Expand All @@ -1210,10 +1206,6 @@ future<uint64_t> file::get_lifetime_hint_impl(int op) noexcept {
});
}

future<uint64_t> file::get_file_lifetime_hint() noexcept {
return get_lifetime_hint_impl(F_GET_FILE_RW_HINT);
}

future<uint64_t> file::get_inode_lifetime_hint() noexcept {
return get_lifetime_hint_impl(F_GET_RW_HINT);
}
Expand Down
2 changes: 1 addition & 1 deletion src/net/ip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace net {

ipv4_address::ipv4_address(const std::string& addr) {
boost::system::error_code ec;
auto ipv4 = boost::asio::ip::address_v4::from_string(addr, ec);
auto ipv4 = boost::asio::ip::make_address_v4(addr, ec);
if (ec) {
throw std::runtime_error(
fmt::format("Wrong format for IPv4 address {}. Please ensure it's in dotted-decimal format", addr));
Expand Down
6 changes: 3 additions & 3 deletions src/net/net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ ipv4_addr::ipv4_addr(const std::string &addr) {
std::vector<std::string> items;
boost::split(items, addr, boost::is_any_of(":"));
if (items.size() == 1) {
ip = boost::asio::ip::address_v4::from_string(addr).to_ulong();
ip = boost::asio::ip::make_address_v4(addr).to_ulong();
port = 0;
} else if (items.size() == 2) {
ip = boost::asio::ip::address_v4::from_string(items[0]).to_ulong();
ip = boost::asio::ip::make_address_v4(items[0]).to_ulong();
port = std::stoul(items[1]);
} else {
throw std::invalid_argument("invalid format: " + addr);
}
}

ipv4_addr::ipv4_addr(const std::string &addr, uint16_t port_) : ip(boost::asio::ip::address_v4::from_string(addr).to_ulong()), port(port_) {}
ipv4_addr::ipv4_addr(const std::string &addr, uint16_t port_) : ip(boost::asio::ip::make_address_v4(addr).to_ulong()), port(port_) {}

ipv4_addr::ipv4_addr(const net::inet_address& a, uint16_t port)
: ipv4_addr(::in_addr(a), port)
Expand Down

0 comments on commit c8edab2

Please sign in to comment.