forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7150402
committed
amcheck: Harden tests against concurrent autovacuums.
The previous coding of the test was vulnerable against autovacuumtriggering work on one of the tables in check_btree.sql.For the purpose of the test it's entirely sufficient to check forlocks taken by the current process, so add an appropriate restriction.While touching the test, expand it to also check for locks on theunderlying relations, rather than just the indexes.Reported-By: Tom LaneDiscussion:https://postgr.es/m/30354.1489434301@sss.pgh.pa.us1 parentbb4a396 commit7150402
2 files changed
+6
-2
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 |
| - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
81 | 83 |
| |
82 | 84 |
| |
83 | 85 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
53 | 55 |
| |
54 | 56 |
| |
55 | 57 |
| |
|
0 commit comments
Comments
(0)