|
Ran
|
Jobs
1
|
Files
519
|
Run time
2min
|
Badge
README BADGES
|
push
github
salad: reserve block before bps_tree_insert_first_elem The commit 51c56d9b3319 ("salad: reserve extents for matras_touch on BPS tree operations") already made the tree self-sufficient - reserved blocks in garbage and extents for `matras_touch` calls prior to insertion and deletion. However, it didn't account for the addition of the first element to the tree, which creates the root leaf - this could also trigger `matras_touch` in `bps_tree_garbage_pop`. However, it turns out there is no need to touch blocks before taking them out of the garbage. There is an invariant that blocks in the garbage are definitely not used by any read views. Although from the point of view of the matras, they require copying and could potentially have been needed by these read views. Let's just remove this `matras_touch` from `bps_tree_garbage_pop`. Also let's reserve a block in the garbage before calling `bps_tree_insert_first_elem` to bring the tree even closer to self-sufficiency. Closes #11788 NO_DOC=bugfix (cherry picked from commit 52b3d4b91)
70165 of 123613 branches covered (56.76%)
5 of 5 new or added lines in 1 file covered. (100.0%)
27 existing lines in 13 files now uncovered.103422 of 118111 relevant lines covered (87.56%)
1591490.31 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
91.25 |
0.59% | src/box/box.cc |
| 1 |
96.14 |
-0.18% | src/box/relay.cc |
| 1 |
92.42 |
0.09% | src/box/vinyl.c |
| 1 |
95.48 |
0.82% | src/box/vy_read_iterator.c |
| 1 |
84.34 |
0.1% | src/box/xlog.c |
| 1 |
89.31 |
0.06% | src/box/xrow.c |
| 1 |
93.22 |
0.18% | src/lib/core/fiber.c |
| 1 |
96.15 |
-0.0% | src/lib/salad/bps_tree.h |
| 1 |
22.68 |
0.04% | src/lib/uri/uri_parser.c |
| 2 |
95.84 |
-0.11% | src/box/iproto.cc |
| 3 |
93.62 |
-1.6% | src/box/vy_range.c |
| 4 |
93.87 |
-0.8% | src/box/xrow_update_field.c |
| 9 |
88.14 |
-7.63% | src/box/vy_regulator.c |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 18379469354.1 | 519 |
87.56 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|