forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8bfd1a8
committed
Lock database while running drop database in Hot Standby to protect
against concurrent reconnection. Failure during testing showed issuewas possible, even though earlier analysis seemed to indicate itwould not be required. Use LockSharedObjectForSession() beforeResolveRecoveryConflictWithDatabase() and hold lock until end ofprocessing for that WAL record. Simple approach to avoid introducingfurther bugs at this stage of development on an improbable issue.1 parent40b91b3 commit8bfd1a8
1 file changed
+20
-1
lines changedLines changed: 20 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
1944 | 1944 |
| |
1945 | 1945 |
| |
1946 | 1946 |
| |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
1947 | 1954 |
| |
| 1955 | + | |
1948 | 1956 |
| |
1949 | 1957 |
| |
1950 | 1958 |
| |
| |||
1960 | 1968 |
| |
1961 | 1969 |
| |
1962 | 1970 |
| |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
1963 | 1982 |
| |
1964 | 1983 |
| |
1965 | 1984 |
| |
|
0 commit comments
Comments
(0)