Skip to content

Commit

Permalink
app refcount is numVirtualStorages
Browse files Browse the repository at this point in the history
Signed-off-by: dorjesinpo <[email protected]>
  • Loading branch information
dorjesinpo committed Sep 30, 2024
1 parent 4a46378 commit 616a7a0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/groups/mqb/mqbblp/mqbblp_rootqueueengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1784,15 +1784,7 @@ mqbi::StorageResult::Enum RootQueueEngine::evaluateAutoSubscriptions(
// (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);
Expand Down

0 comments on commit 616a7a0

Please sign in to comment.