From 02c354d72b542f1ca16ab236637c40471e15de1d Mon Sep 17 00:00:00 2001 From: dorjesinpo <129227380+dorjesinpo@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:06:29 -0400 Subject: [PATCH] app refcount is numVirtualStorages Signed-off-by: dorjesinpo <129227380+dorjesinpo@users.noreply.github.com> --- src/groups/mqb/mqbblp/mqbblp_rootqueueengine.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/groups/mqb/mqbblp/mqbblp_rootqueueengine.cpp b/src/groups/mqb/mqbblp/mqbblp_rootqueueengine.cpp index 06114746d..38e729a14 100644 --- a/src/groups/mqb/mqbblp/mqbblp_rootqueueengine.cpp +++ b/src/groups/mqb/mqbblp/mqbblp_rootqueueengine.cpp @@ -2061,15 +2061,7 @@ RootQueueEngine::head(const AppStateSp app) const // (virtual mqbi::QueueEngine) unsigned int RootQueueEngine::messageReferenceCount() const { - unsigned refCount = d_isFanout ? d_queueState_p->domain() - ->config() - - .mode() - .fanout() - .appIDs() - .size() - : 1; - + unsigned int refCount = d_queueState_p->storage()->numVirtualStorages(); unsigned int numNegative = d_queueState_p->storage()->numAutoConfirms(); BSLS_ASSERT_SAFE(numNegative <= refCount);