summaryrefslogtreecommitdiff
path: root/src/mongo/util/concurrency/semaphore_ticketholder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/concurrency/semaphore_ticketholder.h')
-rw-r--r--src/mongo/util/concurrency/semaphore_ticketholder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/concurrency/semaphore_ticketholder.h b/src/mongo/util/concurrency/semaphore_ticketholder.h
index 7994956cf28..4f8dba0027a 100644
--- a/src/mongo/util/concurrency/semaphore_ticketholder.h
+++ b/src/mongo/util/concurrency/semaphore_ticketholder.h
@@ -53,10 +53,10 @@ public:
int available() const override final;
- int queued() const override final {
+ int64_t queued() const override final {
auto removed = _semaphoreStats.totalRemovedQueue.loadRelaxed();
auto added = _semaphoreStats.totalAddedQueue.loadRelaxed();
- return std::max(static_cast<int>(added - removed), 0);
+ return std::max(added - removed, (int64_t)0);
};
private: