summaryrefslogtreecommitdiff
path: root/src/mongo/util
diff options
context:
space:
mode:
authorPatrick Freed <patrick.freed@mongodb.com>2023-05-17 13:23:13 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-17 14:28:11 +0000
commit84475222a82ded97409472d83b16afb1c08a9af8 (patch)
tree07c94f2cc924cf99801d67658391a6376ad262e6 /src/mongo/util
parenta4cffa9d6a2c902101f19b3b54af2714b0f4af4a (diff)
downloadmongo-84475222a82ded97409472d83b16afb1c08a9af8.tar.gz
SERVER-74015 Introduce mocked gRPC stub and client stream
Diffstat (limited to 'src/mongo/util')
-rw-r--r--src/mongo/util/producer_consumer_queue.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/util/producer_consumer_queue.h b/src/mongo/util/producer_consumer_queue.h
index 0c5118e52d6..bef44b6f29f 100644
--- a/src/mongo/util/producer_consumer_queue.h
+++ b/src/mongo/util/producer_consumer_queue.h
@@ -439,10 +439,11 @@ public:
size_t waitingConsumers;
size_t waitingProducers;
size_t producerQueueDepth;
+ bool producerEndClosed;
+ bool consumerEndClosed;
// TODO more stats
//
// totalTimeBlocked on either side
- // closed ends
// count of producers and consumers (blocked, or existing if we're a pipe)
};
@@ -629,6 +630,8 @@ public:
stats.waitingConsumers = _consumers;
stats.waitingProducers = _producers;
stats.producerQueueDepth = _producers.queueDepth();
+ stats.producerEndClosed = _producerEndClosed;
+ stats.consumerEndClosed = _consumerEndClosed;
return stats;
}