gerrit/gerrit-gpg
Edwin Kempin f36b3d7a75 Let AccountsUpdate take care to evict accounts from the account cache
Accounts need to be evicted from the account cache when they are
updated. Instead of leaving this responsibility to the caller let
AccountsUpdate take care of this. This is more convenient and ensures
that none of the callers forgets about it.

Accounts also need to be evicted from the account cache on creation,
since the account cache may hold an empty AccountState instance for that
account ID (if it was requested from the account cache before and was
found missing).

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

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