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

dgraph-io / badger / 1446
61%
main: 61%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-eb8e6b6abe
DEFAULT BRANCH: main
Ran 08 Mar 2018 03:50AM CUT
Jobs 1
Files 25
Run time 3s
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

pending completion
1446

push

travis-ci

manishrjain
Non-locking, read-only opens (#432)

* Read-only opens

This introduces a read-only option on the DB struct. The main effect
is to force all transactions to be read-only. It also skips anything
that might write to disk.

It will put a shared lock on the directory when it's opened
read-only. This will allow other read-only opens but will deny
read-write opens until all readers have closed. If the database is
already open read-write and an attempt is made to open it
again (read-only or read-write), an error occurs.

It also:

 - Fails if the manifest doesn't exist on read-only open
 - Does not attempt to truncate the manifest
 - Skips compactors and memtable
 - All vlogs are opened read-only

* Avoid truncating vlog in read-only mode

There shouldn't be any need anyways.

* ReadOnly opens fail on corrupt DB

If there is data in a vlog to be replayed, opening the DB with
ReadOnly set will return an error.

* Unplumb the readonly args

The vlog structure already carries the opts from it's Open()

* Use flags instead of bools for OpenExistingSyncedFile

* Comment changes per @manishrjain

* OpenExistingSyncFile -> OpenExistingFile

To reflect that it's not just for synced files.

* Add a placeholder for Windows read-only mode

* Hack tests to pass through Windows failures

These tests are useless on Windows until the placeholder in
dir_windows.go is removed.

* Changes requested by @manishrjain

Arg cleanups + house preferences.

4176 of 5112 relevant lines covered (81.69%)

85039.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1446.1 08 Mar 2018 03:50AM CUT 0
81.69
Travis Job 1446.1
Source Files on build 1446
  • List 0
  • Changed 15
  • Source Changed 8
  • Coverage Changed 15
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
  • Back to Repo
  • Travis Build #1446
  • dc0df253 on github
  • Prev Build on master (#1445)
  • Next Build on master (#1449)
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

© 2025 Coveralls, Inc