gerrit/gerrit-gpg
Edwin Kempin 4847c3de4e Let ExternalIdsUpdate take care to evict accounts from the account cache
The account cache holds AccountState instances which contain the
external IDs of the accounts. Hence an account must be evicted from the
account cache when its external IDs are updated. At the moment it's the
responsibility of the caller to do the account eviction, but it can
easily be forgotten and it's more convenient if ExternalIdsUpdate takes
care of it. For some scenarios this may result in a few more cache
evictions (e.g. account creation), but for most operations the number of
account evictions should stay the same.

After updating external IDs the corresponding accounts also need to be
reindexed, but this is automatically done when accounts are evicted from
the account cache.

Change-Id: I1af02c7576eea81bb229a4663cb1e067ab137784
Signed-off-by: Edwin Kempin <ekempin@google.com>
2017-06-09 09:56:23 +02:00
..
src Let ExternalIdsUpdate take care to evict accounts from the account cache 2017-06-09 09:56:23 +02:00
BUILD Don't ship bouncycastle libraries in plugin API 2017-04-07 07:38:04 +02:00