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

tarantool / tarantool / 9127410125
86%
master: 88%

Build:
Build:
LAST BUILD BRANCH: m.kostoev/delete_range
DEFAULT BRANCH: master
Ran 17 May 2024 11:44AM UTC
Jobs 1
Files 479
Run time 1min
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

17 May 2024 11:17AM UTC coverage: 85.799% (-0.006%) from 85.805%
9127410125

push

github

locker
vinyl: fix bug when tuple not committed to unique nullable index

A unique nullable key definition extended with primary key parts
(cmp_def) assumes that two tuples are equal *without* comparing
primary key fields if all secondary key fields are equal and not
nulls, see tuple_compare_slowpath(). This is a hack required to
ignore the uniqueness constraint for nulls in memtx. The memtx
engine can't use the secondary key definition as is (key_def) for
comparing tuples in the index tree, as it does for a non-nullable
unique index, because this wouldn't allow insertion of any
duplicates, including nulls. It couldn't use cmp_def without this
hack, either, because then conflicting tuples with the same
secondary key fields would always compare as not equal due to
different primary key parts.

For Vinyl, this hack isn't required because it explicitly skips
the uniqueness check if any of the indexed fields are nulls, see
vy_check_is_unique_secondary(). Furthermore, this hack is harmful
because Vinyl relies on the fact that two tuples compare as equal by
cmp_def if and only if *all* key fields (both secondary and primary)
are equal. For example, this is used in the transaction manager,
which overwrites statements equal by cmp_def, see vy_tx_set_entry().

Let's disable this hack by resetting unique_part_count in cmp_def.

Closes #9769

NO_DOC=bug fix

(cherry picked from commit 2e6890636)

62587 of 113808 branches covered (54.99%)

1 of 1 new or added line in 1 file covered. (100.0%)

47 existing lines in 13 files now uncovered.

93471 of 108942 relevant lines covered (85.8%)

2615615.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9127410125.1 17 May 2024 11:44AM UTC 0
85.8
GitHub Action Run
Source Files on build 9127410125
Detailed source file information is not available for this build.
  • Back to Repo
  • 4db12994 on github
  • Prev Build on release/2.11 (#9108683127)
  • Next Build on release/2.11 (#9129180130)
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