aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorheretic <heretic@yandex-team.com>2022-08-10 19:10:49 +0300
committerheretic <heretic@yandex-team.com>2022-08-10 19:10:49 +0300
commitce5d59c112f47f3e9322f2cc54ac0398f59275ac (patch)
tree4303a022fcb4a3eb7612b1f095a38300fa7551de
parentaaa3ec2a0feb30b37a90df9754f7810c16acecb6 (diff)
downloadydb-ce5d59c112f47f3e9322f2cc54ac0398f59275ac.tar.gz
Prepare to clang14: fix library/cpp/actors/interconnect -Wunused-but-set-variable && -Wdeprecated-copy
fix library/cpp/actors/interconnect -Wdeprecated-copy fix library/cpp/actors/interconnect -Wunused-but-set-variable
-rw-r--r--library/cpp/actors/interconnect/interconnect_counters.cpp6
-rw-r--r--library/cpp/actors/interconnect/load.cpp4
2 files changed, 8 insertions, 2 deletions
diff --git a/library/cpp/actors/interconnect/interconnect_counters.cpp b/library/cpp/actors/interconnect/interconnect_counters.cpp
index 408f86cae9..0a1a725570 100644
--- a/library/cpp/actors/interconnect/interconnect_counters.cpp
+++ b/library/cpp/actors/interconnect/interconnect_counters.cpp
@@ -29,6 +29,7 @@ namespace {
{}
TOutputChannel(const TOutputChannel&) = default;
+ TOutputChannel &operator=(const TOutputChannel& other) = default;
};
struct TInputChannel {
@@ -52,6 +53,7 @@ namespace {
{}
TInputChannel(const TInputChannel&) = default;
+ TInputChannel &operator=(const TInputChannel& other) = default;
};
struct TInputChannels : std::unordered_map<ui16, TInputChannel> {
@@ -72,6 +74,7 @@ namespace {
}
TInputChannels(const TInputChannels&) = default;
+ TInputChannels &operator=(const TInputChannels& other) = default;
const TInputChannel& Get(ui16 id) const {
const auto it = find(id);
@@ -361,6 +364,7 @@ namespace {
{}
TOutputChannel(const TOutputChannel&) = default;
+ TOutputChannel &operator=(const TOutputChannel& other) = default;
};
struct TInputChannel {
@@ -383,6 +387,7 @@ namespace {
{}
TInputChannel(const TInputChannel&) = default;
+ TInputChannel &operator=(const TInputChannel& other) = default;
};
struct TInputChannels : std::unordered_map<ui16, TInputChannel> {
@@ -404,6 +409,7 @@ namespace {
}
TInputChannels(const TInputChannels&) = default;
+ TInputChannels &operator=(const TInputChannels& other) = default;
const TInputChannel& Get(ui16 id) const {
const auto it = find(id);
diff --git a/library/cpp/actors/interconnect/load.cpp b/library/cpp/actors/interconnect/load.cpp
index 2a8443da71..d460903f35 100644
--- a/library/cpp/actors/interconnect/load.cpp
+++ b/library/cpp/actors/interconnect/load.cpp
@@ -306,10 +306,10 @@ namespace NInterconnect {
}
void HandleWakeup(const TActorContext& ctx) {
- ui32 numDropped = 0;
+ // ui32 numDropped = 0;
while (TimeoutQueue && TimeoutQueue.front().first <= ctx.Now()) {
- numDropped += InFly.erase(TimeoutQueue.front().second);
+ /*numDropped += */InFly.erase(TimeoutQueue.front().second);
TimeoutQueue.pop();
}
if (TimeoutQueue) {