diff options
-rw-r--r-- | vespalib/src/vespa/vespalib/util/shared_operation_throttler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/util/shared_operation_throttler.cpp b/vespalib/src/vespa/vespalib/util/shared_operation_throttler.cpp index e91be68a671..dd790bcaa0a 100644 --- a/vespalib/src/vespa/vespalib/util/shared_operation_throttler.cpp +++ b/vespalib/src/vespa/vespalib/util/shared_operation_throttler.cpp @@ -244,7 +244,10 @@ DynamicOperationThrottler::DynamicOperationThrottler(const DynamicThrottleParams { } -DynamicOperationThrottler::~DynamicOperationThrottler() = default; +DynamicOperationThrottler::~DynamicOperationThrottler() +{ + assert(_pending_ops == 0u); +} bool DynamicOperationThrottler::has_spare_capacity_in_active_window() noexcept |