- Notifications
You must be signed in to change notification settings - Fork5
Commite2999ab
committed
Fix assertion failure in logical decoding.
Logical decoding set SnapshotData's regd_count field to avoid thesnapshot manager from prematurely freeing snapshots that are generatedby the decoding system. That was always an abuse of the field, as it wasnever supposed to be used outside the snapshot manager. Commit9402869made snapshot manager's tracking of the snapshots smarter, and that schemefell apart. The snapshot manager got confused and hit the assertion, whena snapshot that was marked with regd_count==1 was not found in the heap,where the snapshot manager tracks registered the snapshots.To fix, don't abuse the regd_count field like that. Logical decoding stillabuses the active_count field for similar purposes, but that's currentlyharmless.The assertion failure was first reported by Michael Paquier1 parent90898af commite2999ab
2 files changed
+7
-7
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1188 | 1188 |
| |
1189 | 1189 |
| |
1190 | 1190 |
| |
1191 |
| - | |
1192 |
| - | |
| 1191 | + | |
| 1192 | + | |
1193 | 1193 |
| |
1194 | 1194 |
| |
1195 | 1195 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
348 | 348 |
| |
349 | 349 |
| |
350 | 350 |
| |
351 |
| - | |
| 351 | + | |
352 | 352 |
| |
353 | 353 |
| |
354 | 354 |
| |
| |||
407 | 407 |
| |
408 | 408 |
| |
409 | 409 |
| |
410 |
| - | |
| 410 | + | |
411 | 411 |
| |
412 |
| - | |
| 412 | + | |
413 | 413 |
| |
414 | 414 |
| |
415 | 415 |
| |
416 | 416 |
| |
417 | 417 |
| |
418 | 418 |
| |
419 |
| - | |
| 419 | + | |
420 | 420 |
| |
421 | 421 |
| |
422 | 422 |
| |
| |||
495 | 495 |
| |
496 | 496 |
| |
497 | 497 |
| |
498 |
| - | |
| 498 | + | |
499 | 499 |
| |
500 | 500 |
| |
501 | 501 |
| |
|
0 commit comments
Comments
(0)