Commit 7a9561e
committed
catalog/lease: fix nil pointer dereference in purgeOldVersions
Previously, we added logic that to handle errRenewLease due to session
expiration with a debug assertion making sure the latest version of a
descriptor was not historical. Sadly, the assertion did not take into
account concurrent clean up of the version being retained. To address
this, this patch adds an explicit nil check to handle this scenario.
Fixes: #154155
Release note: None1 parent 82a1c7d commit 7a9561e
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1277 | 1277 | | |
1278 | 1278 | | |
1279 | 1279 | | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
1280 | 1285 | | |
1281 | 1286 | | |
1282 | 1287 | | |
| |||
0 commit comments