1. 05 2月, 2015 2 次提交
    • I
      Fix data race #3 · e39f4f6c
      Igor Canadi 提交于
      Summary: Added requirement that ComputeCompactionScore() be executed in mutex, since it's accessing being_compacted bool, which can be mutated by other threads. Also added more comments about thread safety of FileMetaData, since it was a bit confusing. However, it seems that FileMetaData doesn't have data races (except being_compacted)
      
      Test Plan: Ran 100 ConvertCompactionStyle tests with thread sanitizer. On master -- some failures. With this patch -- none.
      
      Reviewers: yhchiang, rven, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D32283
      e39f4f6c
    • S
      Get() to use prefix bloom filter when filter is not block based · e63140d5
      sdong 提交于
      Summary:
      Get() now doesn't make use of bloom filter if it is prefix based. Add the check.
      Didn't touch block based bloom filter. I can't fully reason whether it is correct to do that. But it's straight-forward to for full bloom filter.
      
      Test Plan:
      make all check
      Add a test case in DBTest
      
      Reviewers: rven, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: MarkCallaghan, leveldb, dhruba, yoshinorim
      
      Differential Revision: https://reviews.facebook.net/D31941
      e63140d5
  2. 04 2月, 2015 6 次提交
    • Y
      Add utility functions for interpreting ThreadStatus · 678503eb
      Yueh-Hsuan Chiang 提交于
      Summary:
      Add ThreadStatus::GetOperationName() and ThreadStatus::GetStateName(),
      two utility functions that help interpreting ThreadStatus.
      
      Test Plan: ./thread_list_test
      
      Reviewers: sdong, rven, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D32793
      678503eb
    • I
      rocksdb: Enable scan-build static analysis · 4d98e293
      Igor Sugak 提交于
      Summary:
      Added new target ##make analyze## into Makefile. This command runs clang static analyzer and builds the sources as ##make all##. The result report is put into ##$(RocksDbSourceRoot)/can_build_report/##
      
      If the development environment is a Facebook devserver and ##ROCKSDB_NO_FBCODE## is not set, then scan-build is used from fbcode. If it is run not on a Facebook devserver, scan-build should be available in ##$PATH##. I'll add details to wiki how to install scan-build on a non Facebook devserver environment.
      
      Test Plan:
      Run the fallowing commands on a Facebook devserver and Mac OS, and ensure no build or test errors.
      
      ```
      % make all check -j32
      % make clean
      % USE_CLANG=1 make all -j32
      % make analyze
      % USE_CLANG=1 make analyze
      ```
      
      Reviewers: sdong, lgalanis, leveldb, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D32799
      4d98e293
    • Y
      Remove unused util/thread_event_info.h · 756e1f15
      Yueh-Hsuan Chiang 提交于
      Summary:
      Remove unused util/thread_event_info.h, which is replaced by
      util/thread_operation.h
      
      Test Plan:
      make dbg -j32
      make release -j32
      756e1f15
    • V
      Changes for supporting cross functional tests for inplace_update · dad98dd4
      Venkatesh Radhakrishnan 提交于
      Summary:
      This diff containes the changes to the code and db_test
      for supporting cross functional tests for inplace_update
      
      Test Plan: Run XF with inplace_test and also without
      
      Reviewers: igor, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D32367
      dad98dd4
    • S
      Divide test DBIteratorTest.DBIterator to smaller tests · 9898f639
      sdong 提交于
      Summary:
      When building on my host, I saw warning:
      
      In file included from db/db_iter_test.cc:17:0:
      db/db_iter_test.cc: In member function ‘void rocksdb::_Test_DBIterator::_Run()’:
      ./util/testharness.h:147:14: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
       void TCONCAT(_Test_,name)::_Run()
                    ^
      ./util/testharness.h:134:23: note: in definition of macro ‘TCONCAT1’
       #define TCONCAT1(a,b) a##b
                             ^
      ./util/testharness.h:147:6: note: in expansion of macro ‘TCONCAT’
       void TCONCAT(_Test_,name)::_Run()
            ^
      db/db_iter_test.cc:589:1: note: in expansion of macro ‘TEST’
       TEST(DBIteratorTest, DBIterator) {
       ^
      
      By dividing the test into small tests, it should fix the problem
      
      Test Plan: Run the test
      
      Reviewers: rven, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D32679
      9898f639
    • S
      Options::PrepareForBulkLoad() to increase parallelism of flushes · 829363b4
      sdong 提交于
      Summary: Increasing parallelism of flushes will help bulk load throughput.
      
      Test Plan: Compile it.
      
      Reviewers: MarkCallaghan, yhchiang, rven, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D32685
      829363b4
  3. 03 2月, 2015 4 次提交
  4. 02 2月, 2015 3 次提交
  5. 01 2月, 2015 1 次提交
  6. 31 1月, 2015 15 次提交
  7. 30 1月, 2015 3 次提交
  8. 29 1月, 2015 6 次提交