commit | d4eee8bc9975a87ff60775bf35792e88cc02b370 | [log] [tgz] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Wed Oct 02 16:19:13 2013 -0700 |
committer | Dave Borowitz <dborowitz@google.com> | Thu Oct 03 08:40:14 2013 -0700 |
tree | 2cfd16b187adf9f49d9cebd47e22e2a6777ffecc | |
parent | 29b29e5f26ad82455140dfbcf93b30d9eb0fb4b9 [diff] |
Lazily open database connections in ChangeIndexer tasks These connections are only needed in the request scope environment when continuing work in a different thread. Most indexing operations (e.g. from new-style REST APIs) don't happen in a request scope, so don't need to tie up a database connection on the off chance that RequestContext.getReviewDbProvider() is called. Change-Id: Ide04ffc61dc73b2c816ed29ee018c83e948f6f1d