synapse-product/synapse
Richard van der Hoff 64ddec1bc0 Fix a logcontext leak in persist_events
ObserveableDeferred expects its callbacks to be called without any
logcontexts, whereas it turns out we were calling them with the logcontext of
the request which initiated the persistence loop.

It seems wrong that we are attributing work done in the persistence loop to the
request that happened to initiate it, so let's solve this by dropping the
logcontext for it.

(I'm not sure this actually causes any real problems other than messages in the
debug log, but let's clean it up anyway)
2018-01-16 11:47:36 +00:00
..
api Refactor UI auth implementation 2017-12-05 09:40:05 +00:00
app Actually make it work 2018-01-12 10:39:27 +00:00
appservice Extract group_id from the dict for multiple use 2017-11-16 18:18:30 +00:00
config Actually make it work 2018-01-12 10:39:27 +00:00
crypto Fix 500 when joining matrix-dev 2017-11-29 16:00:46 +00:00
events replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
federation Check missing fields in event_from_pdu_json 2017-12-30 18:40:19 +00:00
groups Namespace visibility options for groups 2017-11-09 15:27:18 +00:00
handlers Merge pull request #2773 from matrix-org/erikj/hash_bg 2018-01-10 18:11:41 +00:00
http Update http request metrics before calling servlet 2018-01-09 18:27:35 +00:00
metrics Make Counter render floats 2018-01-12 23:49:44 +00:00
module_api Delete devices in various logout situations 2017-11-29 16:44:35 +00:00
push Remove pushers when deleting access tokens 2017-11-29 16:44:35 +00:00
replication Fix some logcontext leaks in replication resource 2017-11-23 23:19:43 +00:00
rest Reinstate media download on thumbnail request 2018-01-12 15:38:06 +00:00
static/client Updates to fallback CAS login to do new token login 2015-11-06 09:57:17 +00:00
storage Fix a logcontext leak in persist_events 2018-01-16 11:47:36 +00:00
streams replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
util Remove __PreservingContextDeferred too 2017-11-14 23:00:10 +00:00
__init__.py Bump version and changelog 2018-01-05 10:54:01 +00:00
event_auth.py Fix templating error with unban permission message 2018-01-07 19:52:58 -07:00
notifier.py Clear logcontext before starting fed txn queue runner 2017-11-28 15:26:14 +00:00
python_dependencies.py Make 'affinity' package optional 2017-10-02 18:03:59 +01:00
server.py Merge branch 'develop' into matthew/search-all-local-users 2017-11-30 01:51:38 +00:00
server.pyi Move set_password into its own handler 2017-11-29 16:44:35 +00:00
state.py replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
types.py replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
visibility.py Remove preserve_context_over_{fn, deferred} 2017-11-14 11:22:42 +00:00