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

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

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-eb8e6b6abe
DEFAULT BRANCH: main
Ran 11 Sep 2017 05:41AM UTC
Jobs 2
Files 21
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

pending completion
775

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.

3147 of 4131 relevant lines covered (76.18%)

66284.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 775.1 11 Sep 2017 05:41AM UTC 0
76.18
Travis Job 775.1
2 775.2 11 Sep 2017 05:44AM UTC 0
75.96
Travis Job 775.2
Source Files on build 775
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #775
  • 46ceb473 on github
  • Prev Build on master (#770)
  • Next Build on master (#777)
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