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

tarantool / tarantool / 30085114546
88%

Build:
DEFAULT BRANCH: master
Ran 24 Jul 2026 10:21AM UTC
Jobs 1
Files 529
Run time 2min
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

24 Jul 2026 10:08AM UTC coverage: 87.822% (+0.001%) from 87.821%
30085114546

push

github

locker
box: refactor read view activation internal API

The read view core implementation is MT-safe: it's okay to access the
same read view concurrently from multiple threads. However, to implement
a box-like API with support for tuple field names and space upgrade, we
need space formats, which are thread-local. Currently, we attach the
formats to a read view with the so called "activation" procedure, see
read_view_activate. It creates all required formats and stores them
right in the read view core object. The problem here is that this API
isn't suitable for using the same read view object in multiple threads -
it may only be used for passing a read view from one thread to another.

Let's replace the "activation" procedure with creation of a "handle".
A handle contains a pointer to a core read view object plus info
required to implement a box-like API (space formats, upgrade state).
Note, handle structures exist only for database and space read view
objects. There's no handle for an index object because we don't need
to attach any thread-local data to it.

This commit refactors our internal read view API and patches the Lua
module, which is the only place where it's used. This is a preparation
for making read views available in application threads.

Needed for #12951

NO_DOC=refactoring
NO_TEST=refactoring
NO_CHANGELOG=refactoring

72054 of 120914 branches covered (59.59%)

105 of 118 new or added lines in 3 files covered. (88.98%)

48 existing lines in 10 files now uncovered.

108023 of 123002 relevant lines covered (87.82%)

1391599.07 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
90.6
-1.16% src/box/read_view.c
3
0.0
0.0% src/box/space_upgrade.h

Coverage Regressions

Lines Coverage ∆ File
25
90.6
-1.16% src/box/read_view.c
8
60.42
-5.56% src/lib/core/fio.c
3
89.94
-0.22% src/box/applier.cc
2
98.48
0.02% src/box/lua/read_view.c
2
94.32
-0.29% src/box/memtx_space.c
2
86.07
0.2% src/box/xlog.c
2
89.69
0.05% src/box/xrow.c
2
80.95
-9.52% src/lib/core/tt_sigaction.c
1
97.05
0.0% src/lib/msgpuck/msgpuck.h
1
79.29
-0.25% src/main.cc
Jobs
ID Job ID Ran Files Coverage
1 30085114546.1 24 Jul 2026 10:21AM UTC 529
87.82
GitHub Action Run
Source Files on build 30085114546
  • Tree
  • List 529
  • Changed 22
  • Source Changed 0
  • Coverage Changed 22
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 3163809f on github
  • Prev Build on master (#29987765051)
  • Next Build on master (#30246651955)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc