1. 23 3月, 2016 3 次提交
  2. 22 3月, 2016 3 次提交
  3. 19 3月, 2016 8 次提交
  4. 18 3月, 2016 7 次提交
    • M
      Reset block cache in failing unit test. · 44756260
      Marton Trencseni 提交于
      Test Plan: make -j40 check OPT=-g, on both /tmp and /dev/shm
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Subscribers: andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D55701
      44756260
    • M
      Adding pin_l0_filter_and_index_blocks_in_cache feature. · 522de4f5
      Marton Trencseni 提交于
      Summary:
      When a block based table file is opened, if prefetch_index_and_filter is true, it will prefetch the index and filter blocks, putting them into the block cache.
      What this feature adds: when a L0 block based table file is opened, if pin_l0_filter_and_index_blocks_in_cache is true in the options (and prefetch_index_and_filter is true), then the filter and index blocks aren't released back to the block cache at the end of BlockBasedTableReader::Open(). Instead the table reader takes ownership of them, hence pinning them, ie. the LRU cache will never push them out. Meanwhile in the table reader, further accesses will not hit the block cache, thus avoiding lock contention.
      When the table reader is destroyed, it releases the pinned blocks (if there were any). This has to happen before the cache is destroyed, so I had to introduce a TableReader::Close(), to guarantee the order of destruction.
      
      Test Plan:
      Added two unit tests for this. Existing unit tests run fine (default is pin_l0_filter_and_index_blocks_in_cache=false).
      
      DISABLE_JEMALLOC=1 OPT=-g make all valgrind_check -j32
        Mac: OK.
        Linux: with D55287 patched in it's OK.
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Subscribers: andrewkr, leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D54801
      522de4f5
    • I
      Merge pull request #1041 from yuslepukhin/adjust_for_jemalloc · be222712
      Islam AbdelRahman 提交于
      Latest versions of Jemalloc library do not require je_init()/je_unint()
      be222712
    • S
      Fix in HistogramWindowingImpl · 4ecc03c0
      SherlockNoMad 提交于
      4ecc03c0
    • D
      Latest versions of Jemalloc library do not require je_init()/je_unint() · 2ca0994c
      Dmitri Smirnov 提交于
        calls. #ifdef in the source code and make this a default build option.
      2ca0994c
    • G
      Update --max_write_buffer_number for compaction benchmarks · 90aff0c4
      Gunnar Kudrjavets 提交于
      Summary: For compactions benchmarks (both level and universal) we'll use `--max_write_buffer_number=4`. For all the other benchmarks which don't customize the value of `--max_background_flushes` we'll continue using `--max_write_buffer_number=8`.
      
      Test Plan:
      To validate basic correctness and command-line options:
      
      ```
      cd ~/rocksdb
      NKEYS=10000000 ./tools/run_flash_bench.sh
      ```
      
      Reviewers: MarkCallaghan
      
      Reviewed By: MarkCallaghan
      
      Subscribers: andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D55497
      90aff0c4
    • A
      Forge current file for checkpoint · 72224104
      Andrew Kryczka 提交于
      Summary:
      This fixes a similar issue as D54711: "CURRENT" file can mutate between
      GetLiveFiles() and copy to the tmp directory, in which case it would reference
      the wrong manifest filename. To fix this, I forge the "CURRENT" file such that
      it simply contains the filename for the manifest returned by GetLiveFiles().
      
      - Changed CreateCheckpoint() to forge current file
      - Added CreateFile() utility function
      - Added test case that rolls manifest during checkpoint creation
      
      Test Plan:
        $ ./checkpoint_test
      
      Reviewers: sdong, IslamAbdelRahman
      
      Reviewed By: IslamAbdelRahman
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D55065
      72224104
  5. 17 3月, 2016 3 次提交
  6. 16 3月, 2016 8 次提交
  7. 15 3月, 2016 6 次提交
  8. 13 3月, 2016 2 次提交
    • A
      Update change log for 4.6 release · 0267655d
      Andrew Kryczka 提交于
      Summary: as titled
      
      Test Plan: N/A
      
      Reviewers: sdong, kradhakrishnan, anthony, yhchiang, IslamAbdelRahman
      
      Reviewed By: IslamAbdelRahman
      
      Subscribers: leveldb, andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D55323
      0267655d
    • A
      Expose RepairDB as ldb command · 08304c08
      Andrew Kryczka 提交于
      Summary: This will make it easier for admins and devs to use RepairDB.
      
      Test Plan:
      Tried deleting the manifest and verified it recovers:
      
        $ ldb --create_if_missing --db=/tmp/test_db put ok ok
        $ rm -f /tmp/test_db/MANIFEST-000001
        $ ./ldb --db=/tmp/test_db repair
        $ ldb --db=/tmp/test_db get ok
        ok
      
      Reviewers: yhchiang, sdong, IslamAbdelRahman
      
      Reviewed By: IslamAbdelRahman
      
      Subscribers: leveldb, andrewkr, dhruba
      
      Differential Revision: https://reviews.facebook.net/D55359
      08304c08