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

dgraph-io / badger / 775 / 2
61%
main: 61%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-eb8e6b6abe
DEFAULT BRANCH: main
Ran 11 Sep 2017 05:44AM UTC
Files 21
Run time 1s
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

11 Sep 2017 05:39AM UTC coverage: 75.962% (-0.1%) from 76.079%
775.2

push

travis-ci

deepakjois
Use mmap for reading values everywhere.

This change adds support for mmap-ing the writable value log file,
in addition to the read-only files. We mmap the files with the size
set to math.MaxUint32, which is the theoretical maximum size of the value
pointer offset.

It is not very clear what the implications of mmap-ing beyond the
size of the file is. The mmap manpage does not indicate anything
specific. Moreover, it also says:

> “The effect of changing the size of the underlying file of a mapping
on the pages that correspond to added or removed regions of the
file is unspecified.”

The approach used here is similar to what BoltDB is doing, so there
is some confidence that it is fine.

Other notable changes:

* Since we are doing mmap reads exclusively, we no longer need to
  pass around a slice to copy the buffer. So some method signatures
  also changed as a result of that.

* Rename logFile.fdlock to logFile.lock because it is now used to guard
both file descriptor and the memory map.

* Add logFile.mmap() convenience method.

* Make logFile.readValueBytes() method take a callback for consuming
bytes.

3138 of 4131 relevant lines covered (75.96%)

33108.61 hits per line

Source Files on job 775.2
  • Tree
  • List 0
  • Changed 11
  • Source Changed 3
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 775
  • Travis Job 775.2
  • 46ceb473 on github
  • Prev Job for on master (#770.2)
  • Next Job for on master (#777.2)
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