mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
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 <roman@dragonflydb.io>
This commit is contained in:
parent
345c2949d9
commit
51f400ac4a
1 changed files with 2 additions and 1 deletions
|
@ -313,7 +313,8 @@ QueueBackpressure* thread_queue_backpressure = nullptr;
|
||||||
|
|
||||||
QueueBackpressure& GetQueueBackpressure() {
|
QueueBackpressure& GetQueueBackpressure() {
|
||||||
DCHECK(thread_queue_backpressure != nullptr);
|
DCHECK(thread_queue_backpressure != nullptr);
|
||||||
return *thread_queue_backpressure;
|
|
||||||
|
return thread_queue_backpressure[ProactorBase::me()->GetPoolIndex()];
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue