1. 29 11月, 2017 2 次提交
    • P
      Support for block_cache num_shards and other config via option string. · 4b65cfc7
      Phani Shekhar Mantripragada 提交于
      Summary:
      Problem: Option string accepts only cache_size as parameter for block_cache which is specified as "block_cache=1M".
      It doesn't accept other parameters like num_shards etc.
      
      Changes :
      1) ParseBlockBasedTableOption in block_based_table_factory is edited to accept cache options in the format "block_cache=<cache_size>:<num_shard_bits>:<strict_capacity_limit>:<high_pri_pool_ratio>".
      Options other than cache_size are optional to maintain backward compatibility. The changes are valid for block_cache_compressed as well.
      For example, "block_cache=1M:6:true:0.5", "block_cache=1M:6:true", "block_cache=1M:6" and "block_cache=1M" are all valid option strings.
      
      2) Corresponding unit tests are added.
      Closes https://github.com/facebook/rocksdb/pull/3108
      
      Differential Revision: D6420997
      
      Pulled By: sagar0
      
      fbshipit-source-id: cdea8b785688d2802907974af27225ccc1c0cd43
      4b65cfc7
    • G
      Expose all remaining read and write options via the C API · 2f095247
      Griffin Smith 提交于
      Summary:
      Expose read and write options via the C API
      Closes https://github.com/facebook/rocksdb/pull/3185
      
      Differential Revision: D6389658
      
      Pulled By: sagar0
      
      fbshipit-source-id: 1848912750329a476805b3cb2f315e7b71f61472
      2f095247
  2. 28 11月, 2017 1 次提交
  3. 25 11月, 2017 1 次提交
    • Y
      Blob DB: Fix GC handling for inlined blob · f0dde49c
      Yi Wu 提交于
      Summary:
      Garbage collection checks if the offset in blob index matches the offset of the blob value in the file. If it is a mismatch, the value is the current version. However it failed to check if the blob index is an inlined type, which don't even have an offset. Fixing it.
      Closes https://github.com/facebook/rocksdb/pull/3194
      
      Differential Revision: D6394270
      
      Pulled By: yiwu-arbug
      
      fbshipit-source-id: 7c2b9d795f1116f55f4d728086980f9b6e88ea78
      f0dde49c
  4. 23 11月, 2017 1 次提交
  5. 22 11月, 2017 2 次提交
  6. 21 11月, 2017 5 次提交
  7. 20 11月, 2017 1 次提交
  8. 18 11月, 2017 2 次提交
  9. 17 11月, 2017 1 次提交
  10. 16 11月, 2017 5 次提交
  11. 15 11月, 2017 1 次提交
    • M
      Properly destruct rebuilding_trx_ · 175d5d6a
      Maysam Yabandeh 提交于
      Summary:
      When testing rebuilding_trx_ in MemTableInserter might still be set before the tests finishes which would cause ASAN alarms for leaks. This patch deletes the pointers in MemTableInserter destructor.
      Closes https://github.com/facebook/rocksdb/pull/3162
      
      Differential Revision: D6317113
      
      Pulled By: maysamyabandeh
      
      fbshipit-source-id: a68be70709a4fff7ac2b768660119311968f9c21
      175d5d6a
  12. 14 11月, 2017 2 次提交
  13. 12 11月, 2017 2 次提交
  14. 11 11月, 2017 4 次提交
    • M
      WritePrepared Txn: Refactor conf params · 857adf38
      Maysam Yabandeh 提交于
      Summary:
      Summary of changes:
      - Move seq_per_batch out of Options
      - Rename concurrent_prepare to two_write_queues
      - Add allocate_seq_only_for_data_
      Closes https://github.com/facebook/rocksdb/pull/3136
      
      Differential Revision: D6304458
      
      Pulled By: maysamyabandeh
      
      fbshipit-source-id: 08e685bfa82bbc41b5b1c5eb7040a8ca6e05e58c
      857adf38
    • A
      prefer enabling cpu features via -march/-mcpu · 07c2738f
      Andrew Kryczka 提交于
      Summary:
      If possible, use -march or -mcpu to get enable all features available on the local CPU or architecture. Only if this is impossible, we will manually set -msse4.2. It should be safe as there'll be a warning printed if `USE_SSE` is set and the provided flags are insufficient to support SSE4.2.
      Closes https://github.com/facebook/rocksdb/pull/3156
      
      Differential Revision: D6304703
      
      Pulled By: ajkr
      
      fbshipit-source-id: 030a53491263300cae7fafb429114d87acc828ef
      07c2738f
    • D
      Fix crashes, address test issues and adjust windows test script · f8e2db07
      Dmitri Smirnov 提交于
      Summary:
      Add per-exe execution capability
        Add fix parsing of groups/tests
        Add timer test exclusion
      
       Fix unit tests
        Ifdef threadpool specific tests that do not pass on Vista threadpool.
        Remove spurious outout from prefix_test so test case listing works
        properly.
        Fix not using standard test directories results in file creation errors
        in sst_dump_test.
      
        BlobDb fixes:
          In C++ end() iterators can not be dereferenced. They are not valid.
      	When deleting blob_db_ set it to nullptr before any other code executes.
      	Not fixed:. On Windows you can not delete a file while it is open.
      	[ RUN      ] BlobDBTest.ReadWhileGC
      	d:\dev\rocksdb\rocksdb\utilities\blob_db\blob_db_test.cc(75): error: DestroyBlobDB(dbname_, options, bdb_options)
      	IO error: Failed to delete: d:/mnt/db\testrocksdb-17444/blob_db_test/blob_dir/000001.blob: Permission denied
      	d:\dev\rocksdb\rocksdb\utilities\blob_db\blob_db_test.cc(75): error: DestroyBlobDB(dbname_, options, bdb_options)
      	IO error: Failed to delete: d:/mnt/db\testrocksdb-17444/blob_db_test/blob_dir/000001.blob: Permission denied
      
        write_batch
          Should not call front() if there is a chance the container is empty
      Closes https://github.com/facebook/rocksdb/pull/3152
      
      Differential Revision: D6293274
      
      Pulled By: sagar0
      
      fbshipit-source-id: 318c3717c22087fae13b18715dffb24565dbd956
      f8e2db07
    • S
      Stream · eefd75a2
      Shaohua Li 提交于
      Summary:
      Add a simple policy for NVMe write time life hint
      Closes https://github.com/facebook/rocksdb/pull/3095
      
      Differential Revision: D6298030
      
      Pulled By: shligit
      
      fbshipit-source-id: 9a72a42e32e92193af11599eb71f0cf77448e24d
      eefd75a2
  15. 10 11月, 2017 2 次提交
  16. 09 11月, 2017 2 次提交
    • Y
      Blob DB: Fix race condition between flush and write · 5e9e5a47
      Yi Wu 提交于
      Summary:
      A race condition will happen when:
      * a user thread writes a value, but it hits the write stop condition because there are too many un-flushed memtables, while holding blob_db_impl.write_mutex_.
      * Flush is triggered and call flush begin listener and try to acquire blob_db_impl.write_mutex_.
      
      Fixing it.
      Closes https://github.com/facebook/rocksdb/pull/3149
      
      Differential Revision: D6279805
      
      Pulled By: yiwu-arbug
      
      fbshipit-source-id: 0e3c58afb78795ebe3360a2c69e05651e3908c40
      5e9e5a47
    • Y
      Blob DB: Fix release build · ca75f0a6
      Yi Wu 提交于
      Summary:
      `compression` shadow the method name in `BlobFile`. Rename it.
      Closes https://github.com/facebook/rocksdb/pull/3148
      
      Differential Revision: D6274498
      
      Pulled By: yiwu-arbug
      
      fbshipit-source-id: 7d293596530998b23b6b8a8940f983f9b6343a98
      ca75f0a6
  17. 08 11月, 2017 3 次提交
  18. 07 11月, 2017 1 次提交
    • M
      Add lock wait time as a perf context counter · e03377c7
      Manuel Ung 提交于
      Summary:
      Adds two new counters:
      
      `key_lock_wait_count` counts how many times a lock was blocked by another transaction and had to wait, instead of being granted the lock immediately.
      `key_lock_wait_time` counts the time spent acquiring locks.
      Closes https://github.com/facebook/rocksdb/pull/3107
      
      Differential Revision: D6217332
      
      Pulled By: lth
      
      fbshipit-source-id: 55d4f46da5550c333e523263422fd61d6a46deb9
      e03377c7
  19. 04 11月, 2017 2 次提交