Commit 84f5bc6
lexeyo
feat all: Breaking: new DistLockComponentBase .ctor that enables automatic distlock startup and shutdown
This PR changes the `DistLockComponentBase` behaviour and could break the existing code relying on it.
The initial API required manual distlock startup/shutdown via `AutostartDistlock()`/`StopDistlock()` calls in a derived class .ctor/.dtor. Now the distlock startup and shutdown are managed by the framework. So, `AutostartDistlock()`/`StopDistlock()`calls should be removed from derived classes. Or `DisableAutostartAtBase{}` should be passed to the `DistLockComponentBase` .ctor to preserve the old behaviour.
commit_hash:e9114d91866007a17f05b476be4fc39d03dfa4c11 parent 868e14a commit 84f5bc6
2 files changed
Lines changed: 24 additions & 3 deletions
File tree
- postgresql
- include/userver/storages/postgres
- src/storages/postgres
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
77 | 90 | | |
78 | 91 | | |
79 | 92 | | |
| |||
128 | 141 | | |
129 | 142 | | |
130 | 143 | | |
131 | | - | |
| 144 | + | |
| 145 | + | |
132 | 146 | | |
133 | 147 | | |
134 | | - | |
| 148 | + | |
| 149 | + | |
135 | 150 | | |
136 | 151 | | |
137 | 152 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
114 | 120 | | |
115 | 121 | | |
116 | 122 | | |
| |||
0 commit comments