Commit 592617a
part: Fix returned watch channel in search()
If there was a leaf node with a key that was shorter than
our search key we incorrectly returned that leaf node's watch
channel instead of the channel of the parent non-leaf node.
This caused the watch channel returned by GetWatch() to not
close when expected.
Signed-off-by: Jussi Maki <[email protected]>1 parent 2c163b8 commit 592617a
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
477 | 478 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | 479 | | |
482 | 480 | | |
483 | 481 | | |
| 482 | + | |
| 483 | + | |
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
495 | 501 | | |
496 | 502 | | |
497 | 503 | | |
| |||
0 commit comments