Skip to content
Permalink
Branch: master
Commits on Jan 22, 2018
  1. Re-enable DSYNC on MacOS and iOS.

    deepakjois committed Jan 22, 2018
    This is a local commit of #378.
Commits on Dec 19, 2017
  1. Add a small line describing Txn.SetEntry()

    deepakjois committed Dec 19, 2017
  2. Improve docs for Item.Value() method

    deepakjois committed Dec 19, 2017
  3. Add MergeOperator to support merge functionality.

    deepakjois committed Dec 13, 2017
    * Add a MergeOperator struct
    
    * Added a MergeFunc type that defines a func type to be provided
      by the user to perform the merge operation
    
    * Added methods to support the merge functionality.
    
    * Updated README
Commits on Dec 15, 2017
  1. Update RunValueLogGC docs

    deepakjois committed Dec 15, 2017
  2. Update README.md

    deepakjois committed Dec 15, 2017
Commits on Dec 13, 2017
  1. Run gc until we encounter non-nil error.

    deepakjois committed Dec 13, 2017
    Earlier we ran the GC only once, relying on the user to call
    DB.RunValueLogGC() multiple times.  We now record some discard
    statistics to the vlog struct. We can use that information to improve
    the GC.
    
    This commit makes the GC run multiple times, picking a different log
    file each time, until we encounter an error. We expect to stop the GC
    the moment we receive a ErrNoRewrite error.
  2. Adding ValueLogLoadingMode option to memory usage section

    deepakjois committed Dec 13, 2017
Commits on Dec 12, 2017
  1. Clarify memory usage section

    deepakjois committed Dec 12, 2017
  2. Make mmap-ing of value log optional.

    deepakjois committed Dec 6, 2017
    We introduce a new option ValueLogLoadingMode, which controls
    whether the value log is read via mmap, or by standard File I/O.
    
    Methods that fall in the path to reading the value from log now
    take an additional argument for the slice which would be used to
    read the data, if the ValueLoadLoadingMode is set to FileIO.
  3. Version bump

    deepakjois committed Dec 12, 2017
  4. Add latest changes to Changelog

    deepakjois committed Dec 12, 2017
  5. Tweak build flags as per #350

    deepakjois committed Dec 12, 2017
Commits on Dec 5, 2017
  1. Revert "Change TTL resolution to nanoseconds and allow subsecond TTLs (

    deepakjois committed Dec 5, 2017
    …#337)"
    
    This reverts commit a08ffaf.
Commits on Nov 30, 2017
  1. Add comment about the origin of code snippet

    deepakjois committed Nov 30, 2017
  2. Fix 32-bit Windows build.

    deepakjois committed Nov 30, 2017
    Change the way we create the unsafe pointer to get around a compile
    error on 32-bit Windows.
    
    This code snippet is copied from unix.Mmap code. Thanks to @Stebalien
    for pointing it out.
    
    Fix #331.
  3. Version bump to v1.2.0

    deepakjois committed Nov 30, 2017
  4. Allow setting TTL and User metadata at the same time.

    deepakjois committed Nov 30, 2017
    We expose a public struct Entry, which can be used to set the key,
    value, user metadata and TTL all at the same time.
Commits on Nov 29, 2017
  1. Use a helper method to setup Badger before running test.

    deepakjois committed Nov 28, 2017
    Most of the tests just setup a temporary directory, open Badger
    and then run the test. This commit refactors the repeated code
    in each test into a helper method.
    
    Some tests have been left alone because they do something extra
    like setting different options, closing/re-opening the DB etc.
    
    Fixes #304.
Commits on Nov 28, 2017
  1. Remove unnecessary TOC entry

    deepakjois committed Nov 28, 2017
  2. Update README with example for handling ErrTxnTooBig

    deepakjois committed Nov 28, 2017
Commits on Nov 13, 2017
  1. Update Changelog and bump version

    deepakjois committed Nov 13, 2017
  2. Fixing 64-bit alignment in structs that use sync.atomic

    deepakjois committed Nov 10, 2017
    This change fixes segmentation faults on Arm v7.
    
    From https://golang.org/pkg/sync/atomic/:
    
    > On both ARM and x86-32, it is the caller's responsibility to arrange
    for 64-bit alignment of 64-bit words accessed atomically. The first word
    in a variable or in an allocated struct, array, or slice can be relied
    upon to be 64-bit aligned.
    
    Had to modify a couple of tests to get them to pass.
    
    Fixes #311.
  3. Clarify iteration sorting order. Fix #317.

    deepakjois committed Nov 13, 2017
  4. Update README.md

    deepakjois committed Nov 13, 2017
  5. Create CHANGELOG.md

    deepakjois committed Nov 13, 2017
Commits on Nov 10, 2017
  1. Fix obsolete test

    deepakjois committed Nov 10, 2017
  2. Create Badger directory if it does not exist.

    deepakjois committed Nov 10, 2017
    Instead of throwing ErrInvalidDir, we try to create a directory that is
    specified in the options. We throw an error only if we cannot create the
    directory for some reason.
    
    Fixes #312.
Commits on Nov 2, 2017
  1. Add a note about backups to Project Status section

    deepakjois committed Nov 2, 2017
  2. Refactor entry.estimateSize() usage

    deepakjois committed Nov 2, 2017
  3. Typo

    deepakjois committed Nov 2, 2017
  4. Update README with v1.0.0 announcement

    deepakjois committed Nov 2, 2017
  5. Bump magic no. once again to avoid ipfs breakage

    deepakjois committed Nov 2, 2017
    See discussion here: ipfs/go-ds-badger#11
  6. Add support for TTL

    deepakjois committed Nov 2, 2017
    We add an additional field in the LSM key structure to capture a Unix timestamp, beyond which the key would be considered expired and would be treated as if it is deleted.
    
    This changes the on-disk format, so we also need to increment the manifest version number.
    
    Fixes #298
Older
You can’t perform that action at this time.