diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-11-02 08:45:20 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-11-02 08:45:20 +0000 |
commit | 22016fdbeddcff39eb0b198d632d157d3d03a536 (patch) | |
tree | cc324b762fdef9efcbc3d28f3d263e23d14f948c /library/cpp | |
parent | a506c27564b04c239cc6013ca656ae080e3d3789 (diff) | |
parent | c1e88b2643346523bc487519ca3615245fe372d2 (diff) | |
download | ydb-22016fdbeddcff39eb0b198d632d157d3d03a536.tar.gz |
Merge branch 'rightlib' into mergelibs-241102-0844
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/tld/tlds-alpha-by-domain.txt | 2 | ||||
-rw-r--r-- | library/cpp/yt/stockpile/stockpile_linux.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/tld/tlds-alpha-by-domain.txt b/library/cpp/tld/tlds-alpha-by-domain.txt index 4964f4e61d0..cd5a49783fd 100644 --- a/library/cpp/tld/tlds-alpha-by-domain.txt +++ b/library/cpp/tld/tlds-alpha-by-domain.txt @@ -1,4 +1,4 @@ -# Version 2024102800, Last Updated Mon Oct 28 07:07:02 2024 UTC +# Version 2024110100, Last Updated Fri Nov 1 07:07:01 2024 UTC AAA AARP ABB diff --git a/library/cpp/yt/stockpile/stockpile_linux.cpp b/library/cpp/yt/stockpile/stockpile_linux.cpp index 0cf5ea0a8bb..dafb4e9e8c8 100644 --- a/library/cpp/yt/stockpile/stockpile_linux.cpp +++ b/library/cpp/yt/stockpile/stockpile_linux.cpp @@ -24,7 +24,7 @@ namespace { void RunWithFixedBreaks(i64 bufferSize, TDuration period) { - auto returnCode = ::madvise(nullptr, bufferSize, MADV_STOCKPILE); + auto returnCode = -::madvise(nullptr, bufferSize, MADV_STOCKPILE); YT_LOG_DEBUG_IF(returnCode, "System call \"madvise\" returned %v", strerror(returnCode)); Sleep(period); } @@ -32,7 +32,7 @@ void RunWithFixedBreaks(i64 bufferSize, TDuration period) void RunWithCappedLoad(i64 bufferSize, TDuration period) { auto started = GetApproximateCpuInstant(); - auto returnCode = ::madvise(nullptr, bufferSize, MADV_STOCKPILE); + auto returnCode = -::madvise(nullptr, bufferSize, MADV_STOCKPILE); YT_LOG_DEBUG_IF(returnCode, "System call \"madvise\" returned %v", strerror(returnCode)); auto duration = CpuDurationToDuration(GetApproximateCpuInstant() - started); @@ -47,7 +47,7 @@ std::pair<i64, TDuration> RunWithBackoffs( const TStockpileOptions& options, i64 pageSize) { - int returnCode = ::madvise(nullptr, adjustedBufferSize, MADV_STOCKPILE); + int returnCode = -::madvise(nullptr, adjustedBufferSize, MADV_STOCKPILE); YT_LOG_DEBUG_IF(returnCode, "System call \"madvise\" returned %v", strerror(returnCode)); switch(returnCode) { |