forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcce1ecf
committed
Adjust assertion in GetCurrentCommandId.
currentCommandIdUsed is only used to skip redundant increments of thecommand counter, and CommandCounterIncrement() is categorically deniedunder parallelism anyway. Therefore, it's OK forGetCurrentCommandId() to mark the counter value used, as long as ithappens in the leader, not a worker.Prior to commite9baa5e, the slightlyincorrect check didn't matter, but now it does. A test case added bycommit1804284 uncovered the problemby accident; it caused failures with force_parallel_mode=on/regress.Report and review by Andres Freund. Patch by me.Discussion:http://postgr.es/m/20171221143106.5lhtygohvmazli3x@alap3.anarazel.de1 parent6719b23 commitcce1ecf
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
683 | 683 |
| |
684 | 684 |
| |
685 | 685 |
| |
686 |
| - | |
687 |
| - | |
| 686 | + | |
| 687 | + | |
688 | 688 |
| |
689 | 689 |
| |
690 | 690 |
| |
691 |
| - | |
| 691 | + | |
692 | 692 |
| |
693 | 693 |
| |
694 | 694 |
| |
|
0 commit comments
Comments
(0)