Skip to content

Commit 6870309

Browse files
committed
fix: invalid reference inside GetQueueBackpressure (#4789)
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 429ac62 commit 6870309

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
@@ -309,7 +309,8 @@ QueueBackpressure* thread_queue_backpressure = nullptr;
309309

310310
QueueBackpressure& GetQueueBackpressure() {
311311
DCHECK(thread_queue_backpressure != nullptr);
312-
return *thread_queue_backpressure;
312+
313+
return thread_queue_backpressure[ProactorBase::me()->GetPoolIndex()];
313314
}
314315

315316
} // namespace

0 commit comments

Comments
 (0)