Uh oh!
There was an error while loading. Please reload this page.
[Reviewer: BPA] Add locking around access to a ManagedTable's row map - #738
[Reviewer: BPA] Add locking around access to a ManagedTable's row map#738rkday-pro wants to merge 1 commit into
Conversation
mirw
commented
Jan 9, 2018
Don't we use Not saying it's the wrong thing to do, but I think we to double-check the performance implications here. This feels like quite an obvious issue - do you know how we expected this to work when we designed it originally? |
rkday-pro
commented
Jan 9, 2018
cpp-common/src/http_connection_pool.cpp Line 112 in 3b35e9c I'll double-check how widely ManagedTable is used. In the interim, I'm going to ask @BennettAllen1 to finish and merge https://github.com/Metaswitch/cpp-common/pull/736/files as that does avoid the problem without a perf hit. |
The basic design is:
I was reluctant to add a lock here, as that might make call processing less efficient just to update some statistics - but I don't think we'll take the lock very often (only when we connect to or disconnect from a DGN) and obviously crashing is worse.