Don't erase key from s_new_ce_keys on eviction
Erasing a key from s_new_ce_keys is equivalent to destroying it, so it
shouldn't be done when the key is merely being evicted.
This didn't matter in practice since eviction requests don't come in
before the key gets persisted, but fix this to avoid confusion.
Test: see I7f11a135d8550618cd96013f834cebd54be5ef84
Change-Id: I28412f243925b5a7242449b617fe9de9c90912b6
Merged-In: I28412f243925b5a7242449b617fe9de9c90912b6
(cherry picked from commit 3529302ede
)
This commit is contained in:
parent
7862729266
commit
0798ed5470
1 changed files with 0 additions and 1 deletions
|
@ -680,7 +680,6 @@ static bool evict_ce_key(userid_t user_id) {
|
|||
drop_caches_if_needed();
|
||||
}
|
||||
s_ce_policies.erase(user_id);
|
||||
s_new_ce_keys.erase(user_id);
|
||||
return success;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue