1. 17 7月, 2015 1 次提交
    • D
      Ensure Windows build w/o port/port.h in public headers · d1a45718
      Dmitri Smirnov 提交于
       - Remove make file defines from public headers and use _WIN32 because it is compiler defined
       - use __GNUC__ and __clang__ to guard non-portable attributes
       - add #include "port/port.h" to some new .cc files.
       - minor changes in CMakeLists to reflect recent changes
      d1a45718
  2. 16 7月, 2015 5 次提交
    • A
      move convenience.h out of utilities · 81d07262
      agiardullo 提交于
      Summary: Moved convenience.h out of utilities to remove a dependency on utilities in db.
      
      Test Plan: unit tests.  Also compiled a link to the old location to verify the _Pragma works.
      
      Reviewers: sdong, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D42201
      81d07262
    • P
      Fixing delete files in Trivial move of universal compaction · beb19ad0
      Poornima Chozhiyath Raman 提交于
      Summary:
      Trvial move in universal compaction was failing when trying to move files from levels other than 0.
      This was because the DeleteFile while trivially moving, was only deleting files of level 0 which caused duplication of same file in different levels.
      This is fixed by passing the right level as argument in the call of DeleteFile while doing trivial move.
      
      Test Plan: ./db_test ran successfully with the new test cases.
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D42135
      beb19ad0
    • K
      Build fix. · c6139606
      krad 提交于
      Summary: gcc-4.9-glibc-2.20 complains about uninitialized variable.
      
      db/compaction_picker.cc: In member function 'bool
      rocksdb::CompactionPicker::IsInputNonOverlapping(rocksdb::Compaction*)':
      db/compaction_picker.cc:1174:17: error:
      'prev.rocksdb::{anonymous}::InputFileInfo::f' may be used uninitialized in this
      function [-Werror=maybe-uninitialized]
         InputFileInfo prev, curr, next;
      
      Test Plan: pmake on local environment
      
      Reviewers: sdong igor
      
      CC: leveldb@
      
      Task ID: #
      
      Blame Rev:
      c6139606
    • A
      Update --help message in db_bench. · 2c8de0ec
      Aaron Feldman 提交于
      Summary:
      Remove --help entry for readhot.
      
      Update read_random_exp_range flag description: The distribution is num *
      exp(-r), not num * exp(r).
      
      Test Plan: Run ./db_bench --help
      
      Reviewers: sdong, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D42303
      2c8de0ec
    • A
      Refactoring of writing key/value pairs · 6b2d44b2
      Andres Notzli 提交于
      Summary:
      Before, writing key/value pairs out to files was done inside
      ProcessKeyValueCompaction(). To make ProcessKeyValueCompaction()
      more understandable, this patch moves the writing part to a separate
      function. This is intended to be a stepping stone for additional
      changes.
      
      Test Plan: make && make check
      
      Reviewers: sdong, rven, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D42243
      6b2d44b2
  3. 15 7月, 2015 16 次提交
  4. 14 7月, 2015 13 次提交
    • I
      Deprecate purge_redundant_kvs_while_flush · a9c51095
      Igor Canadi 提交于
      Summary: This option is guarding the feature implemented 2 and a half years ago: D8991. The feature was enabled by default back then and has been running without issues. There is no reason why any client would turn this feature off. I found no reference in fbcode.
      
      Test Plan: none
      
      Reviewers: sdong, yhchiang, anthony, dhruba
      
      Reviewed By: dhruba
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D42063
      a9c51095
    • I
      Deprecate WriteOptions::timeout_hint_us · 5aea98dd
      Igor Canadi 提交于
      Summary:
      In one of our recent meetings, we discussed deprecating features that are not being actively used. One of those features, at least within Facebook, is timeout_hint. The feature is really nicely implemented, but if nobody needs it, we should remove it from our code-base (until we get a valid use-case). Some arguments:
      * Less code == better icache hit rate, smaller builds, simpler code
      * The motivation for adding timeout_hint_us was to work-around RocksDB's stall issue. However, we're currently addressing the stall issue itself (see @sdong's recent work on stall write_rate), so we should never see sharp lock-ups in the future.
      * Nobody is using the feature within Facebook's code-base. Googling for `timeout_hint_us` also doesn't yield any users.
      
      Test Plan: make check
      
      Reviewers: anthony, kradhakrishnan, sdong, yhchiang
      
      Reviewed By: yhchiang
      
      Subscribers: sdong, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D41937
      5aea98dd
    • A
      Avoid manipulating const char* arrays · ae29495e
      Andres Notzli 提交于
      Summary:
      We were manipulating `const char*` arrays in CompactionJob to
      change the sequence number/types of keys. This patch changes
      UpdateInternalKey() to use string methods to do the manipulation
      and updates all calls accordingly.
      
      Test Plan:
      Added test case for UpdateInternalKey() in dbformat_test.
      make && make check
      
      Reviewers: sdong, rven, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D41985
      ae29495e
    • A
      Partial cleanup of CompactionJob · ab137af4
      Andres Notzli 提交于
      Summary:
      Logging, dealing with key prefix batches and updating stats
      moved from CompactionJob::Run() into separate functions.
      
      Test Plan: make all && make check
      
      Reviewers: sdong, rven, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D41919
      ab137af4
    • I
      Add ldb_test.py back to `make check` · 1879d937
      Igor Canadi 提交于
      Summary: This is revert of D40449. I'm not sure why our tests failed before, they seem to be working fine on my devbox.
      
      Test Plan: ran `make check`
      
      Reviewers: anthony
      
      Reviewed By: anthony
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D41955
      1879d937
    • Y
      Move DynamicLevel related db-tests to db_dynamic_level_test.cc · b10cf4e2
      Yueh-Hsuan Chiang 提交于
      Summary: Move DynamicLevel related db-tests to db_dynamic_level_test.cc
      
      Test Plan:
      db_dynamic_level_test
      db_test
      
      Reviewers: igor, anthony, IslamAbdelRahman, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D42039
      b10cf4e2
    • I
      Block reduce_levels_test in ROCKSDB_LITE · e290f5d3
      Islam AbdelRahman 提交于
      Summary: Block reduce_levels_test in ROCKSDB_LITE as LDBCommand is not supported
      
      Test Plan:
      make reduce_levels_test -j64
      OPT=-DROCKSDB_LITE make reduce_levels_test -j64
      make check -j64
      
      Reviewers: sdong, igor, yhchiang
      
      Reviewed By: yhchiang
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D41967
      e290f5d3
    • I
      Block spatial_db_test in ROCKSDB_LITE · 04d201fa
      Islam AbdelRahman 提交于
      Summary: Block spatial_db_test in ROCKSDB_LITE as SpatialDB is not supported
      
      Test Plan: spatial_db_test
      
      Reviewers: yhchiang, igor, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D41991
      04d201fa
    • Y
      Move global static functions in db_test_util to DBTestBase · 49f42ad0
      Yueh-Hsuan Chiang 提交于
      Summary:
      Move global static functions in db_test_util to DBTestBase.
      This is to prevent unused function warning when decoupling
      db_test.cc into multiple files.
      
      Test Plan: db_test
      
      Reviewers: igor, sdong, anthony, IslamAbdelRahman, kradhakrishnan
      
      Reviewed By: kradhakrishnan
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D42009
      49f42ad0
    • Y
      Move reusable part of db_test.cc to util/db_test_util.h · 625467a0
      Yueh-Hsuan Chiang 提交于
      Summary:
      Move reusable part of db_test.cc to util/db_test_util.h.
      This makes it more possible to partition db_test.cc into
      multiple smaller test files.
      
      Also, fixed many old lint errors in db_test.
      
      Test Plan: db_test
      
      Reviewers: igor, anthony, IslamAbdelRahman, sdong, kradhakrishnan
      
      Reviewed By: sdong, kradhakrishnan
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D41973
      625467a0
    • I
      fix compile for optimistic_transaction_test under ROCKSDB_LITE · e8e8c904
      Islam AbdelRahman 提交于
      Summary: Adding a main for optimistic_transaction_test that report that it was skipped when using ROCKSDB_LITE
      
      Test Plan: optimistic_transaction_test
      
      Reviewers: yhchiang, sdong, igor, anthony
      
      Reviewed By: anthony
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D41979
      e8e8c904
    • A
      Add tombstone information in CompactionJobStats · 8bca83e5
      Ari Ekmekji 提交于
      Summary:
      Added new statistics in CompactionJobStats to keep track of
      deletion entries and the expiration of those entries. Updated these
      fields in compaction_job.cc as compaction took place and wrote a new
      test in compaction_job_stats_test.cc to verify accuracy.
      
      Test Plan:
      Wrote new test DeletionStatsTest in
      compaction_job_stats_test.cc to verify
      
      Reviewers: sdong, igor, yhchiang
      
      Reviewed By: yhchiang
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D41355
      8bca83e5
    • S
      "make format" against last 10 commits · f9728640
      sdong 提交于
      Summary: This helps Windows port to format their changes, as discussed. Might have formatted some other codes too becasue last 10 commits include more.
      
      Test Plan: Build it.
      
      Reviewers: anthony, IslamAbdelRahman, kradhakrishnan, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D41961
      f9728640
  5. 12 7月, 2015 1 次提交
  6. 11 7月, 2015 4 次提交