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

tarantool / tarantool / 9158143604
88%

Build:
DEFAULT BRANCH: master
Ran 20 May 2024 11:52AM UTC
Jobs 1
Files 513
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

20 May 2024 11:42AM UTC coverage: 87.083% (-0.02%) from 87.101%
9158143604

push

github

locker
vinyl: fix index name in duplicate key error message

The code setting ER_TUPLE_FOUND uses index_name_by_id() to find
the index name, but it passes an index in the dense index map to
it while the function expects an index in the sparse index map.
Apparently, this doesn't work as expected after an index is removed
from the middle of the index map. This bug was introduced by
commit fc3834c01e9e6 ("vinyl: check key uniqueness before modifying
tx write set").

Instead of just fixing the index passed to index_name_by_id(), we do
a bit of refactoring. We stop passing index_name and space_name to
vy_check_is_unique_*() functions and instead get them right before
raising ER_TUPLE_FOUND. Note, to get the space name, we need to call
space_by_id() but it should be fine because (a) the space is very likely
to be cached as the last accessed one and (b) this is an error path so
it isn't performance critical. We also drop index_name_by_id() and
extract the index name from the LSM tree object.

Closes #5975

NO_DOC=bug fix

67447 of 119859 branches covered (56.27%)

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

149 existing lines in 18 files now uncovered.

100153 of 115009 relevant lines covered (87.08%)

2470499.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9158143604.1 20 May 2024 11:52AM UTC 0
87.08
GitHub Action Run
Source Files on build 9158143604
Detailed source file information is not available for this build.
  • Back to Repo
  • 2cfba5eb on github
  • Prev Build on master (#9127740030)
  • Next Build on master (#9158142246)
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