Commit graph

2 commits

Author SHA1 Message Date
Aaron Schulz
6a8943d8c5 objectcache: dependency inject LoadBalancer into SqlBagOStuff
Clean up the recursive DB dependency mitigation logic by having
ServiceContainer detect recursion and throw an appropriate error.
Catch the error and use EmptyBagOStuff in such cases. This works
better than checking getQoS() since that begs the question by
requiring the cache instance to begin with.

Also add support for using different LoadBalancer instances for
local and global keys in SqlBagOStuff. This makes it easier to
share keys between projects.

Bug: T229062
Change-Id: Ib8ec1845bcf1b86cbb3bededa0ca7621a0ca293a
2020-05-18 21:04:17 -07:00
Petr Pchelko
fe40625afb SqlBagOStuff: Add a limit to key length
Bug: T224808
Change-Id: I66a547b1fa4a7720ce15797f2df8dc0556c6b35b
2020-02-26 13:22:51 -08:00