Commit 27adbc2
committed
Fix crash when enabling compression on a dropped table
Enabling compression looks up the hypertable and only takes the lock
on it a bit later. If another transaction drops the table in that
window, the lock is granted on a table that no longer exists and the
reloaded hypertable is empty. We now check for this and raise an error
instead of crashing.1 parent 5dbca63 commit 27adbc2
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1379 | 1379 | | |
1380 | 1380 | | |
1381 | 1381 | | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
1382 | 1393 | | |
1383 | 1394 | | |
1384 | 1395 | | |
| |||
0 commit comments