RedisConnection class enhancements & refactoring#10732
Conversation
ff67cd6 to
ae11a10
Compare
|
Dropped one commit from this PR as requested from Julian, and re-added it to the PR instead. |
ae11a10 to
fd0f2a4
Compare
fd0f2a4 to
536bac4
Compare
8300634 to
c3612b3
Compare
|
Simplified the reconnect handling of the redis connection class and get rid of the confusing |
|
My motivation for asking you to create this PR was so that we can get the uncontroversial changes out of the way, so that for example, one doesn't have to look over the changes from 7d96272 over and over again when looking at #10619. Just closing connections that are no longer needed sounded uncontroversial, but it looks like it opened another can of worms in |
c3612b3 to
2136dfc
Compare
Actually, it was quite simple and straightforward and it didn't open anything and none of that was a problem at all. So, dropped all that stuff anyway as requested for whatever reason. |
So that when we want the query stats of this specific connection we can easily get them, since the session leader contains the aggregated stats of all its children.
2136dfc to
c1763e4
Compare
This PR was originally part of #10619 but was split out to make it easier to review as that PR has become quite large.
The changes are trivial and mostly related to code cleanup and refactoring to make the
RedisConnectionclass more useful and easier to maintain. As I mentioned, these changes are necessary for the other PR this one was originally part of.