mirror of
https://github.com/ceph/ceph
synced 2025-02-21 09:57:26 +00:00
Merge pull request #28748 from trociny/wip-journal-player-handle_cache_rebalanced
journal: fix race between player shut down and cache rebalance Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
e1c25b8596
@ -836,7 +836,7 @@ void JournalPlayer::notify_complete(int r) {
|
||||
void JournalPlayer::handle_cache_rebalanced(uint64_t new_cache_bytes) {
|
||||
Mutex::Locker locker(m_lock);
|
||||
|
||||
if (m_state == STATE_ERROR) {
|
||||
if (m_state == STATE_ERROR || m_shut_down) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user