diff options
Diffstat (limited to 'staging_vespalib/src/vespa/vespalib/util/adaptive_sequenced_executor.cpp')
-rw-r--r-- | staging_vespalib/src/vespa/vespalib/util/adaptive_sequenced_executor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/adaptive_sequenced_executor.cpp b/staging_vespalib/src/vespa/vespalib/util/adaptive_sequenced_executor.cpp index e4b64b19739..869ff0456e1 100644 --- a/staging_vespalib/src/vespa/vespalib/util/adaptive_sequenced_executor.cpp +++ b/staging_vespalib/src/vespa/vespalib/util/adaptive_sequenced_executor.cpp @@ -324,12 +324,12 @@ AdaptiveSequencedExecutor::setTaskLimit(uint32_t task_limit) } } -AdaptiveSequencedExecutor::Stats +ExecutorStats AdaptiveSequencedExecutor::getStats() { auto guard = std::lock_guard(_mutex); - Stats stats = _stats; - _stats = Stats(); + ExecutorStats stats = _stats; + _stats = ExecutorStats(); _stats.queueSize.add(_self.pending_tasks); return stats; } |