|
Ran
|
Jobs
1
|
Files
520
|
Run time
3min
|
Badge
README BADGES
|
push
github
limbo: encapsulate limbo promotion logic Promotion logic of the limbo was scattered across the following places quite messy: 1. box/raft which must invoke box_promote_qsync(). 2. box/box's box_promote() had to check terms, collect acks, trigger the low-level promotion request. 3. box/txn_limbo's txn_limbo_req_promote() did the actual final write + commit. While the code is still imperfect, it is quite clear, that box.cc must not be digging so deeply into internals of the limbo. This whole logic now is moved into the limbo's internal code and exposed as one simple function call. Which does one thing - makes sure the limbo ownership is caught up with Raft's state machine. This in turn also allows to entirely hide the selection of promotion LSN. It will be necessary in the future, when synchronous PROMOTE will be implemented, and its commit LSN logic will be relatively complicated and very internal. As a bonus alongside the code just got quite simpler. Part of #8095 NO_DOC=refactoring NO_TEST=refactoring NO_CHANGELOG=refactoring (cherry picked from commit 364c9c6be)
68836 of 116367 branches covered (59.15%)
66 of 71 new or added lines in 2 files covered. (92.96%)
248 existing lines in 21 files now uncovered.103587 of 118251 relevant lines covered (87.6%)
1651835.24 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 5 |
92.99 |
-0.11% | src/box/txn_limbo.c |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 151 |
91.36 |
0.62% | src/box/box.cc |
| 25 |
92.99 |
-0.11% | src/box/txn_limbo.c |
| 22 |
95.06 |
-0.1% | src/box/txn_limbo_queue.c |
| 8 |
92.96 |
0.03% | src/lib/core/fiber.c |
| 6 |
97.28 |
-0.4% | src/box/lua/net_box.c |
| 4 |
84.19 |
-0.37% | src/box/xlog.c |
| 4 |
94.67 |
0.0% | src/lib/core/fiber.h |
| 4 |
93.31 |
-1.27% | src/lib/swim/swim_io.c |
| 3 |
90.61 |
-0.15% | src/box/applier.cc |
| 3 |
97.98 |
-0.21% | src/box/memtx_tx.c |
| 3 |
87.16 |
-0.19% | src/box/vy_run.c |
| 2 |
95.84 |
-0.11% | src/box/iproto.cc |
| 2 |
94.22 |
1.93% | src/box/memtx_space.c |
| 2 |
82.22 |
-4.44% | src/lib/core/latch.h |
| 2 |
96.95 |
-0.2% | src/lib/msgpuck/msgpuck.h |
| 2 |
91.56 |
-0.22% | src/lib/swim/swim.c |
| 1 |
96.31 |
-0.18% | src/box/relay.cc |
| 1 |
92.43 |
-0.05% | src/box/vinyl.c |
| 1 |
96.1 |
-0.05% | src/lib/salad/bps_tree.h |
| 1 |
22.68 |
0.04% | src/lib/uri/uri_parser.c |
| 1 |
75.12 |
-0.25% | src/main.cc |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 25871794029.1 | 520 |
87.6 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|