1. 17 5月, 2012 1 次提交
  2. 01 11月, 2011 1 次提交
    • H
      A number of fixes: · 36a5f8ed
      Hans Wennborg 提交于
      - 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 @25072954)
      36a5f8ed
  3. 12 9月, 2011 1 次提交
    • H
      Sync with upstream @23860137. · 213a68eb
      Hans Wennborg 提交于
      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.)
      213a68eb
  4. 23 8月, 2011 1 次提交
    • G
      Bugfix for issue 33; reduce lock contention in Get(), parallel benchmarks. · e3584f9c
      gabor@google.com 提交于
      - Fix for issue 33 (non-null-terminated result from
        leveldb_property_value())
      
      - Support for running multiple instances of a benchmark in parallel.
      
      - Reduce lock contention on Get():
        (1) Do not hold the lock while searching memtables.
        (2) Shard block and table caches 16-ways.
      
        Benchmark for evaluating this change:
        $ db_bench --benchmarks=fillseq1,readrandom --threads=$n
        (fillseq1 is a small hack to make sure fillseq runs once regardless
        of number of threads specified on the command line).
      
      
      
      git-svn-id: https://leveldb.googlecode.com/svn/trunk@49 62dab493-f737-651d-591e-8d6aee1b9529
      e3584f9c
  5. 06 8月, 2011 1 次提交
  6. 29 6月, 2011 1 次提交
    • G
      Platform detection during build, plus compatibility patches for machines without <cstdatomic>. · f57e2335
      gabor@google.com 提交于
      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
      f57e2335
  7. 28 5月, 2011 1 次提交
  8. 20 4月, 2011 2 次提交
  9. 19 4月, 2011 1 次提交
  10. 13 4月, 2011 1 次提交
  11. 31 3月, 2011 1 次提交
  12. 19 3月, 2011 1 次提交