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

tarantool / tarantool / 5787175665 / 1
85%
master: 88%

Build:
Build:
LAST BUILD BRANCH: release/3.6
DEFAULT BRANCH: master
Ran 07 Aug 2023 04:11PM UTC
Files 459
Run time 23s
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

07 Aug 2023 04:11PM UTC coverage: 85.226% (+0.002%) from 85.224%
5787175665.1

push

github

alyapunov
box: loose truncate check in case of foreign key

In #7309 a truncation of a space that was referenced by foreign
key from some other space was prohibited.

It appeared that this solution is too bothering since a user can't
truncate a space even if he truncated referring space before that.

Fix it by allowing space truncate if referring spaces are empty.
Also allow drop of the primary index in the same case with the
same reason: logically the index along with all space data is
not needed for consistency if there's no referring data.

Note that by design space truncate is implemented quite similar
to space drop. Both delete all indexes, from secondary to primary.
Since this patch allows deletion of the primary index (which is
the action that actually deletes all data from the space), this
patch changes the result of space drop too: the space remains
alive with no indexes, while before this patch it remained alive
with no secondary indexes but with present primary. In both cases
the behaviour is quite strange and must be fixed in #4348. To
make tests pass I had to perform drop in box.atomic manually.

Closes #8946

NO_DOC=bugfix

(cherry picked from commit 983a7ec21)

59310 of 108172 branches covered (54.83%)

90467 of 106149 relevant lines covered (85.23%)

2487919.82 hits per line

Source Files on job 5787175665.1
  • Tree
  • List 0
  • Changed 373
  • Source Changed 0
  • Coverage Changed 373
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 5787175665
  • 6f6d1f62 on github
  • Prev Job for on release/2.10 (#5763524149.1)
  • Next Job for on release/2.10 (#5797583801.1)
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