We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ff0cb5 commit aaeefd8Copy full SHA for aaeefd8
1 file changed
cpp/src/arrow/dataset/dataset_writer.cc
@@ -58,7 +58,7 @@ class Throttle {
58
return Future<>::MakeFinished();
59
}
60
std::lock_guard<std::mutex> lg(mutex_);
61
- if (current_value_ > max_value_) {
+ if (current_value_ >= max_value_) {
62
in_waiting_ = values;
63
backpressure_ = Future<>::Make();
64
} else {
@@ -75,7 +75,7 @@ class Throttle {
75
{
76
77
current_value_ -= values;
78
- if (in_waiting_ > 0 && current_value_ <= max_value_) {
+ if (in_waiting_ > 0 && current_value_ < max_value_) {
79
in_waiting_ = 0;
80
to_complete = backpressure_;
81
0 commit comments