Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Dec 10, 2013

  1. Release LevelDB 1.15

    - switched from mmap based writing to simpler stdio based writing. Has a
      minor impact (0.5 microseconds) on microbenchmarks for asynchronous
      writes. Synchronous writes speed up from 30ms to 10ms on linux/ext4.
      Should be much more reliable on diverse platforms.
    - compaction errors now immediately put the database into a read-only
      mode (until it is re-opened). As a downside, a disk going out of
      space and then space being created will require a re-open to recover
      from, whereas previously that would happen automatically. On the
      plus side, many corruption possibilities go away.
    - force the DB to enter an error-state so that all future writes fail
      when a synchronous log write succeeds but the sync fails.
    - repair now regenerates sstables that exhibit problems
    - fix issue 218 - Use native memory barriers on OSX
    - fix issue 212 - QNX build is broken
    - fix build on iOS with xcode 5
    - make tests compile and pass on windows
    David Grogan authored

Dec 27, 2012

  1. added utility to dump leveldb files

    Sanjay Ghemawat authored

Oct 12, 2012

  1. Update to leveldb 1.6

    Highlights
    ----------
    Mmap at most 1000 files on Posix to improve performance for large databases.
    Support for more architectures (thanks to Alexander K.)
    
    Building and porting
    --------------------
    HP/UX support (issue 126)
    AtomicPointer for ia64 (issue 123)
    Sparc v9 support (issue 124)
    Atomic ops for powerpc
    Use -fno-builtin-memcmp only when using g++
    Simplify IOS build rules (issue 114)
    Use CXXFLAGS instead of CFLAGS when invoking C++ compiler (issue 118)
    Fix snappy shared library problem (issue 94)
    Fix shared library installation path regression
    Endian-ness detection tweak for FreeBSD
    
    Bug fixes
    ---------
    Stop ignoring FLAGS_open_files in db_bench
    Make bloom test behavior agnostic to endian-ness
    
    Performance
    -----------
    Limit number of mmapped files to 1000 to improve perf for large dbs
    Do not delay for 1 second on shutdown path (issue 125)
    
    Misc
    ----
    Make InMemoryEnv return a no-op logger
    C binding now has a wrapper for free (issue 117)
    Add thread-safety annotations
    Added an in-process lock table (issue 120)
    Make RandomAccessFile and SequentialFile non-copyable
    David Grogan authored

May 30, 2012

  1. remove obsolete android port files

    Sanjay Ghemawat authored
  2. Remove static initializer; fix endian-ness detection; fix build on

    various platforms; improve android port speed.
    
    Avoid static initializer by using a new portability interface for
    thread-safe lazy initialization.  Custom ports will need to be
    extended to implement InitOnce/OnceType/LEVELDB_ONCE_INIT.
    
    Fix endian-ness detection (fixes Powerpc builds).
    
    Build related fixes:
    - Support platforms that have unversioned shared libraries.
    - Fix IOS build rules.
    
    Android improvements
    - Speed up atomic pointers
    - Share more code with port_posix.
    
    Do not spin in a tight loop attempting compactions if the file system
    is inaccessible (e.g., if kerberos tickets have expired or if it is out
    of space).
    Sanjay Ghemawat authored

Apr 17, 2012

  1. Added bloom filter support.

    In particular, we add a new FilterPolicy class.  An instance
    of this class can be supplied in Options when opening a
    database.  If supplied, the instance is used to generate
    summaries of keys (e.g., a bloom filter) which are placed in
    sstables.  These summaries are consulted by DB::Get() so we
    can avoid reading sstable blocks that are guaranteed to not
    contain the key we are looking for.
    
    This change provides one implementation of FilterPolicy
    based on bloom filters.
    
    Other changes:
    - Updated version number to 1.4.
    - Some build tweaks.
    - C binding for CompactRange.
    - A few more benchmarks: deleteseq, deleterandom, readmissing, seekrandom.
    - Minor .gitignore update.
    Sanjay Ghemawat authored

Mar 21, 2012

  1. Build fixes and cleanups:

    (1) Separate out C++ and CC flags (fixes c_test compilation)
    (2) Move snappy/perftools detection to script
    (3) Fix db_bench_sqlite3 and db_bench_tree_db build rules
    Sanjay Ghemawat authored

Mar 05, 2012

  1. add .gitignore; support for building on a few BSD variants

    Sanjay Ghemawat authored

Oct 31, 2011

  1. A number of fixes:

    - Replace raw slice comparison with a call to user comparator.
      Added test for custom comparators.
    
    - Fix end of namespace comments.
    
    - Fixed bug in picking inputs for a level-0 compaction.
    
      When finding overlapping files, the covered range may expand
      as files are added to the input set.  We now correctly expand
      the range when this happens instead of continuing to use the
      old range.  For example, suppose L0 contains files with the
      following ranges:
    
          F1: a .. d
          F2:    c .. g
          F3:       f .. j
    
      and the initial compaction target is F3.  We used to search
      for range f..j which yielded {F2,F3}.  However we now expand
      the range as soon as another file is added.  In this case,
      when F2 is added, we expand the range to c..j and restart the
      search.  That picks up file F1 as well.
    
      This change fixes a bug related to deleted keys showing up
      incorrectly after a compaction as described in Issue 44.
    
    (Sync with upstream @2507295)
    Hans Wennborg authored

Sep 12, 2011

  1. Sync with upstream @2386013.

    Fix GCC -Wshadow warnings in LevelDB's public header files,
    reported by Dustin.
    
    Add in-memory Env implementation (helpers/memenv/*).
    This enables users to create LevelDB databases in-memory.
    
    Initialize ShardedLRUCache::last_id_ to zero.
    This fixes a Valgrind warning.
    
    (Also delete port/sha1_* which were removed upstream some time ago.)
    Hans Wennborg authored

Jul 27, 2011

  1. Adding FreeBSD support, removing Chromium files, adding benchmark.

    - LevelDB patch for FreeBSD. This resolves Issue 22.
      Contributed by dforsythe (thanks!).
    
    - Removing Chromium-specific files.
      They are now going to live in the Chromium repository.
    
    - Adding a benchmark page comparing LevelDB performance
      to SQLite and Kyoto Cabinet's TreeDB, along with
      code to generate the benchmarks.
      Thanks to Kevin Tseng for compiling the benchmarks,
      and Scott Hess and Mikio Hirabayashi for their
      help and advice.
    
    
    
    git-svn-id: https://leveldb.googlecode.com/svn/trunk@40 62dab493-f737-651d-591e-8d6aee1b9529
    gabor@google.com authored

Jul 21, 2011

  1. Speed up Snappy uncompression, new Logger interface.

    - Removed one copy of an uncompressed block contents changing
      the signature of Snappy_Uncompress() so it uncompresses into a
      flat array instead of a std::string.
            
      Speeds up readrandom ~10%.
    
    - Instead of a combination of Env/WritableFile, we now have a
      Logger interface that can be easily overridden applications
      that want to supply their own logging.
    
    - Separated out the gcc and Sun Studio parts of atomic_pointer.h
      so we can use 'asm', 'volatile' keywords for Sun Studio.
    
    
    
    
    git-svn-id: https://leveldb.googlecode.com/svn/trunk@39 62dab493-f737-651d-591e-8d6aee1b9529
    gabor@google.com authored

Jul 19, 2011

  1. Sun Studio support, and fix for test related memory fixes.

    - LevelDB patch for Sun Studio
      Based on a patch submitted by Theo Schlossnagle - thanks!
      This fixes Issue 17.
    
    - Fix a couple of test related memory leaks.
    
    
    
    git-svn-id: https://leveldb.googlecode.com/svn/trunk@38 62dab493-f737-651d-591e-8d6aee1b9529
    gabor@google.com authored

Jun 30, 2011

  1. Fixed a snappy compression wrapper bug (passing wrong variable).

    Change atomic_pointer.h to prefer a memory barrier based
    implementation over a <cstdatomic> based implementation for
    the following reasons:
    (1) On a x86-32-bit gcc-4.4 build, <ctdatomic> was corrupting
        the AtomicPointer.
    (2) On a x86-64-bit gcc build, a <ctstdatomic> based acquire-load
        takes ~15ns as opposed to the ~1ns for a memory-barrier
        based implementation.
    
    Fixes issue 9 (corruption_test fails)
    http://code.google.com/p/leveldb/issues/detail?id=9
    
    Fixes issue 16 (CorruptionTest.MissingDescriptor fails)
    http://code.google.com/p/leveldb/issues/detail?id=16
    
    
    
    git-svn-id: https://leveldb.googlecode.com/svn/trunk@36 62dab493-f737-651d-591e-8d6aee1b9529
    gabor@google.com authored

Jun 29, 2011

  1. Fixing Makefile issue reported in Issue 15 (misspelled flag)

    git-svn-id: https://leveldb.googlecode.com/svn/trunk@35 62dab493-f737-651d-591e-8d6aee1b9529
    gabor@google.com authored
  2. Platform detection during build, plus compatibility patches for machi…

    …nes without <cstdatomic>.
    
    This revision adds two major changes:
    1. build_detect_platform which generates build_config.mk
       with platform-dependent flags for the build process
    2. /port/atomic_pointer.h with anAtomicPointerimplementation
       for platforms without <cstdatomic>
    
    Some of this code is loosely based on patches submitted to the 
    LevelDB mailing list at https://groups.google.com/forum/#!forum/leveldb
    Tip of the hat to Dave Smith and Edouard A, who both sent patches.
    
    The presence of Snappy (http://code.google.com/p/snappy/) and
    cstdatomic are now both detected in the build_detect_platform
    script (1.) which gets executing during make.
    
    For (2.), instead of broadly importing atomicops_* from Chromium or
    the Google performance tools, we chose to just implement AtomicPointer 
    and the limited atomic load and store operations it needs. 
    This resulted in much less code and fewer files - everything is 
    contained in atomic_pointer.h.
    
    
    
    git-svn-id: https://leveldb.googlecode.com/svn/trunk@34 62dab493-f737-651d-591e-8d6aee1b9529
    gabor@google.com authored

Jun 22, 2011

  1. A number of smaller fixes and performance improvements:

    - Implemented Get() directly instead of building on top of a full
      merging iterator stack.  This speeds up the "readrandom" benchmark
      by up to 15-30%.
    
    - Fixed an opensource compilation problem.
      Added --db=<name> flag to control where the database is placed.
    
    - Automatically compact a file when we have done enough
      overlapping seeks to that file.
    
    - Fixed a performance bug where we would read from at least one
      file in a level even if none of the files overlapped the key
      being read.
    
    - Makefile fix for Mac OSX installations that have XCode 4 without XCode 3.
    
    - Unified the two occurrences of binary search in a file-list
      into one routine.
    
    - Found and fixed a bug where we would unnecessarily search the
      last file when looking for a key larger than all data in the
      level.
    
    - A fix to avoid the need for trivial move compactions and
      therefore gets rid of two out of five syncs in "fillseq".
    
    - Removed the MANIFEST file write when switching to a new
      memtable/log-file for a 10-20% improvement on fill speed on ext4.
    
    - Adding a SNAPPY setting in the Makefile for folks who have
      Snappy installed. Snappy compresses values and speeds up writes.
    
    
    
    git-svn-id: https://leveldb.googlecode.com/svn/trunk@32 62dab493-f737-651d-591e-8d6aee1b9529
    gabor@google.com authored

May 28, 2011

  1. Update from upstream @2155199

    * Patch LevelDB to build for OSX and iOS
    * Fix race condition in memtable iterator deletion.
    * Other small fixes.
    
    git-svn-id: https://leveldb.googlecode.com/svn/trunk@29 62dab493-f737-651d-591e-8d6aee1b9529
    dgrogan@chromium.org authored

Apr 20, 2011

  1. @2077630

    * env_chromium.cc should not export symbols.
    * Fix MSVC warnings.
    * Removed large value support.
    * Fix broken reference to documentation file
    
    git-svn-id: https://leveldb.googlecode.com/svn/trunk@24 62dab493-f737-651d-591e-8d6aee1b9529
    dgrogan@chromium.org authored

Apr 19, 2011

  1. reverting disastrous MOE commit, returning to r21

    git-svn-id: https://leveldb.googlecode.com/svn/trunk@23 62dab493-f737-651d-591e-8d6aee1b9529
    dgrogan@chromium.org authored
  2. Revision created by MOE tool push_codebase.

    MOE_MIGRATION=
    
    
    git-svn-id: https://leveldb.googlecode.com/svn/trunk@22 62dab493-f737-651d-591e-8d6aee1b9529
    dgrogan@chromium.org authored

Apr 18, 2011

  1. chmod a-x

    git-svn-id: https://leveldb.googlecode.com/svn/trunk@21 62dab493-f737-651d-591e-8d6aee1b9529
    dgrogan@chromium.org authored

Apr 12, 2011

  1. @2060230. Default file permission is now 755.

    git-svn-id: https://leveldb.googlecode.com/svn/trunk@20 62dab493-f737-651d-591e-8d6aee1b9529
    dgrogan@chromium.org authored

Mar 25, 2011

  1. Upstream changes

    git-svn-id: https://leveldb.googlecode.com/svn/trunk@15 62dab493-f737-651d-591e-8d6aee1b9529
    jorlow@chromium.org authored

Mar 22, 2011

  1. Pull from upstream.

    git-svn-id: https://leveldb.googlecode.com/svn/trunk@14 62dab493-f737-651d-591e-8d6aee1b9529
    jorlow@chromium.org authored

Mar 21, 2011

  1. more upstream changes

    git-svn-id: https://leveldb.googlecode.com/svn/trunk@10 62dab493-f737-651d-591e-8d6aee1b9529
    jorlow@chromium.org authored
  2. Changes to get Snappy working

    git-svn-id: https://leveldb.googlecode.com/svn/trunk@8 62dab493-f737-651d-591e-8d6aee1b9529
    jorlow@chromium.org authored
  3. Oops, another file that didn't upload correctly.

    git-svn-id: https://leveldb.googlecode.com/svn/trunk@7 62dab493-f737-651d-591e-8d6aee1b9529
    jorlow@chromium.org authored

Mar 18, 2011

  1. Initial checkin.

    git-svn-id: https://leveldb.googlecode.com/svn/trunk@2 62dab493-f737-651d-591e-8d6aee1b9529
    jorlow@chromium.org authored
Something went wrong with that request. Please try again.