diff options
author | Patrick Freed <patrick.freed@mongodb.com> | 2023-05-17 13:23:13 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 14:28:11 +0000 |
commit | 84475222a82ded97409472d83b16afb1c08a9af8 (patch) | |
tree | 07c94f2cc924cf99801d67658391a6376ad262e6 /src/mongo/util | |
parent | a4cffa9d6a2c902101f19b3b54af2714b0f4af4a (diff) | |
download | mongo-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.h | 5 |
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; } |