• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 17730961951
88%

Build:
DEFAULT BRANCH: master
Ran 15 Sep 2025 11:20AM UTC
Jobs 1
Files 513
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Sep 2025 11:07AM UTC coverage: 87.617% (+0.02%) from 87.593%
17730961951

push

github

locker
box: fix old tuple format in on_replace trigger on space upgrade

Currently format of old tuple in `on_replace` trigger may be in new or old
format during space upgrade depending on whether replace is done before
or after upgrade cursor. Space upgrade is designed to be instant from
user POV: it returns upgraded tuples in `space.get()` for example even
if tuple is not upgraded internally. So to make the trigger consistent
with overall design let's always return old tuple in new format.

The old tuple visible in trigger is set by `memtx_space_replace_tuple()`
function. Instead of fixing it let's get rid of it for a few reasons:

- The interface is a bit odd. `old_tuple` is compressed and `new_tuple`
is not. Also reference for `new_tuple` is taken by the function and
is not for `old_tuple`.
- With this function we do some a bit heavy actions twice. For example
on update we decompress old tuple before update but then decompress it
again to set to `stmt->old_tuple` in this function.

Closes tarantool/tarantool-ee#1458

NO_TEST=the fix is tested by the test in EE repository
NO_CHANGELOG=the changelog will be added in EE repository
NO_DOC=bugfix

71261 of 125063 branches covered (56.98%)

96 of 106 new or added lines in 2 files covered. (90.57%)

32 existing lines in 12 files now uncovered.

104764 of 119570 relevant lines covered (87.62%)

1378468.48 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
94.09
2.11% src/box/memtx_space.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
96.14
0.0% src/box/relay.cc
1
96.55
-1.15% src/lib/core/histogram.c
1
90.38
-1.92% src/lib/core/trigger.cc
1
97.41
-0.86% src/lib/vclock/vclock.c
2
91.28
0.42% src/box/box.cc
3
91.55
-0.58% src/box/gc.c
3
94.68
-1.06% src/box/vy_range.c
3
90.9
-0.31% src/box/vy_scheduler.c
3
97.26
-0.2% src/lib/msgpuck/msgpuck.h
4
92.36
-0.18% src/box/vinyl.c
4
81.82
-12.12% src/lua/minifio.c
6
94.09
2.11% src/box/memtx_space.c
Jobs
ID Job ID Ran Files Coverage
1 17730961951.1 15 Sep 2025 11:20AM UTC 513
87.62
GitHub Action Run
Source Files on build 17730961951
  • Tree
  • List 513
  • Changed 27
  • Source Changed 0
  • Coverage Changed 27
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 7a631952 on github
  • Prev Build on master (#17667906101)
  • Next Build on master (#17767323323)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc