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

tarantool / tarantool / 15156182597

21 May 2025 07:28AM UTC coverage: 87.517% (-0.003%) from 87.52%
15156182597

push

github

locker
xlog: drop xdir_type

The xdir_type passed to xdir_create() and stored in the xdir struct is
used for several purposes:
 1. To initialize xdir filetype and filename_ext.
 2. To enable force recovery for the WAL directory.
 3. To determine whether we need to store the previous vclock in meta
    (we do this for WAL files to check for gaps on recovery).
 4. To fail assertion if xdir_touch_xlog() is called for a file that
    isn't a snapshot.

P.1 can be fixed by passing a string instead of a type.

P.2 isn't really needed because we set the force_flag after initializing
the xdir. We just need to do that for the WAL dir as well.

P.3 can be fixed by adding a special flag to the xdir struct, similar
to the force_recovery flag.

P.4 isn't really needed and can be dropped.

Let's drop xdir_type so that we don't need to register a new file type
in the CE repository whenever we want to use xdir in EE.

NO_DOC=refactoring
NO_TEST=refactoring
NO_CHANGELOG=refactoring

70440 of 124135 branches covered (56.74%)

12 of 12 new or added lines in 5 files covered. (100.0%)

198 existing lines in 16 files now uncovered.

103571 of 118344 relevant lines covered (87.52%)

2777460.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.2
/src/box/engine.c


Source Not Available

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