Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dgraph-io/badger
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2007.2
Choose a base ref
...
head repository: dgraph-io/badger
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.2007.4
Choose a head ref
  • 12 commits
  • 28 files changed
  • 8 contributors

Commits on Sep 14, 2020

  1. (release/v2.2007) Add command to stream contents of DB into another D…

    …B. (#1486)
    
    (cherry picked from commit dc653b0)
    martinmr authored Sep 14, 2020
    Configuration menu
    Copy the full SHA
    d12bee4 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2020

  1. feat(db): Add db.MaxVersion API (#1526) (#1531)

    This PR adds a new `db.MaxVersion()` API that returns the
    maximum version across all keys in the DB.
    
    (cherry picked from commit 36af85f)
    Ibrahim Jarif authored Sep 21, 2020
    Configuration menu
    Copy the full SHA
    7c169e9 View commit details
    Browse the repository at this point in the history
  2. fix(maxVersion): Use choosekey instead of KeyToList (#1532) (#1533)

    (cherry picked from commit f07dcfc)
    Ibrahim Jarif authored Sep 21, 2020
    Configuration menu
    Copy the full SHA
    6a6b506 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

  1. Configuration menu
    Copy the full SHA
    6479307 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2020

  1. fix(flatten): Add --num_versions flag (#1518) (#1520)

    Add --num_versions flag to set NumVersionsToKeep option in badger.
    
    (cherry picked from commit c68fbc1)
    Ibrahim Jarif authored Sep 27, 2020
    Configuration menu
    Copy the full SHA
    5e3d4b9 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2020

  1. Fix integer overflow on 32-bit architectures (#1558)

    The untyped const causes conversion to int, for which the value is too large.
    Use a typed const instead that is large enough to store value.
    
    Similar to #1541, but for v2.2007 branch.
    jsoriano authored Oct 12, 2020
    Configuration menu
    Copy the full SHA
    f5a7e0a View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2020

  1. fix(vlog): Log error on missing vlog (#1628)

    Ibrahim Jarif authored Dec 28, 2020
    Configuration menu
    Copy the full SHA
    3f846b3 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2021

  1. pb: avoid protobuf warning due to common filename (#1519) (#1731)

    If a Go program imports both badger (v1) and badger/v2, a warning will
    be produced at init time:
    
    	WARNING: proto: file "pb.proto" is already registered
    	A future release will panic on registration conflicts. See:
    	https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict
    
    The problem is the "pb.proto" filename; it's registered globally, which
    makes it very likely to cause conflicts with other protobuf-generated
    packages in a Go binary.
    
    Coincidentally, this is a problem with badger's pb package in the v1 module,
    since that too uses the name "pb.proto". Instead, call the file
    "badgerpb2.proto", which should be unique enough, and it's also the name
    we use for the Protobuf package.
    
    Finally, update gen.sh to work out of the box via just "bash gen.sh"
    without needing extra tweaks, thanks to the "paths=source_relative"
    option. It forces output files to be produced next to the input files,
    which is what we want.
    
    (cherry picked from commit 3e6a4b7)
    
    Co-authored-by: Daniel Martí <mvdan@mvdan.cc>
    NamanJain8 and mvdan authored Jul 21, 2021
    Configuration menu
    Copy the full SHA
    73c1ce3 View commit details
    Browse the repository at this point in the history
  2. chore: update changelog for v2.2007.3 (#1733)

    (cherry picked from commit 6c1e5bc)
    NamanJain8 authored Jul 21, 2021
    Configuration menu
    Copy the full SHA
    166e075 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2021

  1. Fix build on Plan 9 (#1451) (#1508) (#1738)

    Plan 9 doesn't have mmap, so we just return an error.
    
    File locking is implemented using the exclusive mode bit.
    From http://man.cat-v.org/plan_9/5/open:
    
      If the file is marked for exclusive use (see stat(5)), only
      one client can have the file open at any time.  That is,
      after such a file has been opened, further opens will fail
      until fid has been clunked.
    
    Initial attempt at implementing directory locking using this method was
    not successful because badger seems to be opening the directory multiple
    times (at least while running the test suite). As a workaround, we lock
    the pid lock file instead of the directory itself, same as the windows
    implementation.
    
    Co-authored-by: Ibrahim Jarif <ibrahim@dgraph.io>
    (cherry picked from commit 07fa3eb)
    
    Co-authored-by: Fazlul Shahriar <fshahriar@gmail.com>
    
    Co-authored-by: Fazlul Shahriar <fshahriar@gmail.com>
    francislavoie and fhs authored Aug 24, 2021
    Configuration menu
    Copy the full SHA
    f0549ca View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2021

  1. feat(zstd): backport replacement of DataDog's zstd with Klauspost's z…

    …std (#1736)
    
    Backports the changes from #1706 and #1709 to the v2 branch of badger.
    
    For context, https://github.com/caddyserver/caddy uses https://github.com/smallstep/certificates which uses https://github.com/smallstep/nosql which uses badger.
    
    See smallstep/nosql#12 for the discussion. It's not currently viable for smallstep to upgrade from v2 to v3 of badger, so it would be nice to backport this zstd change to the v2 branch to remove the implicit (yet optional) CGO dependency on Caddy.
    
    I targeted the release/v2.2007 branch, I couldn't really see a more relevant branch to target, so I hope that's okay.
    francislavoie authored Aug 25, 2021
    Configuration menu
    Copy the full SHA
    c5b434a View commit details
    Browse the repository at this point in the history
  2. Update CHANGELOG for v2.2007.4 (#1740)

    (cherry picked from commit ee6065b)
    NamanJain8 authored Aug 25, 2021
    Configuration menu
    Copy the full SHA
    156819c View commit details
    Browse the repository at this point in the history
Loading