Commit a3441a7
committed
librbd: diff-iterate shouldn't crash on an empty byte range
Commit 0b5ba5f ("librbd/object_map: add support for ranged
diff-iterate") introduced a regression for the case when whole_object
parameter is set to true. Despite DiffRequest being called into and
another DiffIterate potentially being spawned recursively, an empty
byte range previously happened to make it.
Bail on an empty byte range early just like we have always done on an
empty snap id range (i.e. when start and end versions are the same).
Fixes: https://tracker.ceph.com/issues/66418
Signed-off-by: Ilya Dryomov <[email protected]>1 parent 6b5f008 commit a3441a7
2 files changed
+59
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
316 | 319 | | |
317 | 320 | | |
318 | 321 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8529 | 8529 | | |
8530 | 8530 | | |
8531 | 8531 | | |
8532 | | - | |
| 8532 | + | |
8533 | 8533 | | |
8534 | | - | |
| 8534 | + | |
8535 | 8535 | | |
8536 | | - | |
| 8536 | + | |
| 8537 | + | |
8537 | 8538 | | |
8538 | 8539 | | |
8539 | 8540 | | |
8540 | | - | |
8541 | | - | |
| 8541 | + | |
| 8542 | + | |
8542 | 8543 | | |
8543 | 8544 | | |
| 8545 | + | |
| 8546 | + | |
| 8547 | + | |
| 8548 | + | |
| 8549 | + | |
8544 | 8550 | | |
8545 | 8551 | | |
8546 | 8552 | | |
8547 | 8553 | | |
8548 | 8554 | | |
| 8555 | + | |
| 8556 | + | |
| 8557 | + | |
| 8558 | + | |
| 8559 | + | |
| 8560 | + | |
| 8561 | + | |
| 8562 | + | |
| 8563 | + | |
| 8564 | + | |
| 8565 | + | |
| 8566 | + | |
| 8567 | + | |
| 8568 | + | |
| 8569 | + | |
| 8570 | + | |
| 8571 | + | |
| 8572 | + | |
| 8573 | + | |
| 8574 | + | |
| 8575 | + | |
| 8576 | + | |
| 8577 | + | |
| 8578 | + | |
| 8579 | + | |
| 8580 | + | |
| 8581 | + | |
| 8582 | + | |
| 8583 | + | |
| 8584 | + | |
8549 | 8585 | | |
8550 | 8586 | | |
8551 | 8587 | | |
| |||
8580 | 8616 | | |
8581 | 8617 | | |
8582 | 8618 | | |
| 8619 | + | |
| 8620 | + | |
| 8621 | + | |
| 8622 | + | |
| 8623 | + | |
| 8624 | + | |
| 8625 | + | |
| 8626 | + | |
| 8627 | + | |
| 8628 | + | |
| 8629 | + | |
| 8630 | + | |
| 8631 | + | |
| 8632 | + | |
8583 | 8633 | | |
8584 | 8634 | | |
8585 | 8635 | | |
| |||
0 commit comments