- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitb29a183
committed
Fix logical decoding regression tests to correctly check slot existence.
The regression tests for logical decoding verify whether a logical slotexists or has been dropped. Previously, these tests attempted toretrieve "slot_name" from the result of slot(), but since "slot_name" wasnot included in the result, slot()->{'slot_name'} always returned undef,leading to incorrect behavior.This commit fixes the issue by checking the "plugin" field in the resultof slot() instead, ensuring the tests properly verify slot existence.Back-patch to all supported versions.Author: Hayato Kuroda <kuroda.hayato@fujitsu.com>Reviewed-by: Fujii Masao <masao.fujii@gmail.com>Discussion:https://postgr.es/m/OSCPR01MB149667EC4E738769CA80B7EA5F5AE2@OSCPR01MB14966.jpnprd01.prod.outlook.comBackpatch-through: 131 parent186c586 commitb29a183
File tree
2 files changed
+6
-6
lines changed- src/test/recovery/t
2 files changed
+6
-6
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
147 |
| - | |
148 |
| - | |
| 147 | + | |
| 148 | + | |
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
| |||
154 | 154 |
| |
155 | 155 |
| |
156 | 156 |
| |
157 |
| - | |
158 |
| - | |
| 157 | + | |
| 158 | + | |
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
94 |
| - | |
| 93 | + | |
| 94 | + | |
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
|
0 commit comments
Comments
(0)