forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit902a2c2
committed
Remove useless code from CreateReplicationSlot.
According to the comments, we initialize sendTimeLineIsHistoricand sendTimeLine here for the benefit of WalSndSegmentOpen.However, the only way that can happen is if logical_read_xlog_pagecalls WALRead. And since logical_read_xlog_page initializes thesame global variables internally, we don't need to also do it here.These initializations have been here since replication slots wereintroduced in commit858ec11. Theywere certainly useless at that time, too, because logical decodingdidn't yet exist then, and physical replication doesn't examine anyWAL at the time of slot creation. I haven't checked all theintermediate versions, but I suspect there's no point at whichthis code ever did anything useful.To reduce future confusion, remove the code. Since there's nofunctional defect, no back-patch.Discussion:http://postgr.es/m/CA+TgmobSWzacEs+r6C-7DrOPDHoDar4i9gzxB3SCBr5qjnLmVQ@mail.gmail.com1 parent18e0913 commit902a2c2
1 file changed
+0
-4
lines changedLines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1042 | 1042 |
| |
1043 | 1043 |
| |
1044 | 1044 |
| |
1045 |
| - | |
1046 |
| - | |
1047 |
| - | |
1048 |
| - | |
1049 | 1045 |
| |
1050 | 1046 |
| |
1051 | 1047 |
| |
|
0 commit comments
Comments
(0)