Skip to content

Commit 28287ac

Browse files
committed
fix: invalid reference inside GetQueueBackpressure
thread_queue_backpressure is a global array of per thread QueueBackpressure objects. We referenced these objects incorrectly in 1.27.0-2. Fixes #4770 Signed-off-by: Roman Gershman <[email protected]>
1 parent 66c2973 commit 28287ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/facade/dragonfly_connection.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ QueueBackpressure* thread_queue_backpressure = nullptr;
313313

314314
QueueBackpressure& GetQueueBackpressure() {
315315
DCHECK(thread_queue_backpressure != nullptr);
316-
return *thread_queue_backpressure;
316+
317+
return thread_queue_backpressure[ProactorBase::me()->GetPoolIndex()];
317318
}
318319

319320
} // namespace

0 commit comments

Comments
 (0)