1. 17 6月, 2017 1 次提交
  2. 16 6月, 2017 2 次提交
  3. 15 6月, 2017 4 次提交
  4. 14 6月, 2017 6 次提交
    • S
      Allow ignoring unknown options when loading options from a file · 89ad9f3a
      Sagar Vemuri 提交于
      Summary:
      Added a flag, `ignore_unknown_options`, to skip unknown options when loading an options file (using `LoadLatestOptions`/`LoadOptionsFromFile`) or while verifying options (using `CheckOptionsCompatibility`). This will help in downgrading the db to an older version.
      
      Also added `--ignore_unknown_options` flag to ldb
      
      **Example Use case:**
      In MyRocks, if copying from newer version to older version, it is often impossible to start because of new RocksDB options that don't exist in older version, even though data format is compatible.
      MyRocks uses these load and verify functions in [ha_rocksdb.cc::check_rocksdb_options_compatibility](https://github.com/facebook/mysql-5.6/blob/e004fd9f416821d043ccc8ad4a345c33ac9953f0/storage/rocksdb/ha_rocksdb.cc#L3348-L3401).
      
      **Test Plan:**
      Updated the unit tests.
      `make check`
      
      ldb:
      $ ./ldb --db=/tmp/test_db --create_if_missing put a1 b1
      OK
      
      Now edit /tmp/test_db/<OPTIONS-file> and add an unknown option.
      
      Try loading the options now, and it fails:
      $ ./ldb --db=/tmp/test_db --try_load_options get a1
      Failed: Invalid argument: Unrecognized option DBOptions:: abcd
      
      Passes with the new --ignore_unknown_options flag
      $ ./ldb --db=/tmp/test_db --try_load_options --ignore_unknown_options get a1
      b1
      Closes https://github.com/facebook/rocksdb/pull/2423
      
      Differential Revision: D5212091
      
      Pulled By: sagar0
      
      fbshipit-source-id: 2ec17636feb47dc0351b53a77e5f15ef7cbf2ca7
      89ad9f3a
    • H
      fixed typo · 6b5a5dc5
      hyunwoo 提交于
      Summary:
      fixed typo
      Closes https://github.com/facebook/rocksdb/pull/2430
      
      Differential Revision: D5242471
      
      Pulled By: IslamAbdelRahman
      
      fbshipit-source-id: 832eb3a4c70221444ccd2ae63217823fec56c748
      6b5a5dc5
    • H
      fixed typo in util/dynamic_bloom.h · 0f228be3
      haoxiang 提交于
      Summary:
      fixed a typo in util/dynamic_bloom.h
      Closes https://github.com/facebook/rocksdb/pull/2442
      
      Differential Revision: D5242397
      
      Pulled By: IslamAbdelRahman
      
      fbshipit-source-id: c47fd18cc79afff6b022201a0410c0cd47626576
      0f228be3
    • A
      Call RateLimiter for compaction reads · c217e0b9
      Andrew Kryczka 提交于
      Summary:
      Allow users to rate limit background work based on read bytes, written bytes, or sum of read and written bytes. Support these by changing the RateLimiter API, so no additional options were needed.
      Closes https://github.com/facebook/rocksdb/pull/2433
      
      Differential Revision: D5216946
      
      Pulled By: ajkr
      
      fbshipit-source-id: aec57a8357dbb4bfde2003261094d786d94f724e
      c217e0b9
    • Y
      write exact sequence number for each put in write batch · 91e2aa3c
      Yi Wu 提交于
      Summary:
      At the beginning of write batch write, grab the latest sequence from base db and assume sequence number will increment by 1 for each put and delete, and write the exact sequence number with each put. This is assuming we are the only writer to increment sequence number (no external file ingestion, etc) and there should be no holes in the sequence number.
      
      Also having some minor naming changes.
      Closes https://github.com/facebook/rocksdb/pull/2402
      
      Differential Revision: D5176134
      
      Pulled By: yiwu-arbug
      
      fbshipit-source-id: cb4712ee44478d5a2e5951213a10b72f08fe8c88
      91e2aa3c
    • M
      record index partition properties · 6f4154d6
      Maysam Yabandeh 提交于
      Summary:
      When Partitioning index/filter is enabled the user might need to check the index block size as well as the top-level index size via sst_dump. This patch records i) number of partitions, ii) top-level index size and make it accessible through sst_dump. The number of partitions for filters is the same as that of indexes. The top-level index for filters has a similar size to top-level index for indexes, so it is not repeated.
      Closes https://github.com/facebook/rocksdb/pull/2437
      
      Differential Revision: D5224225
      
      Pulled By: maysamyabandeh
      
      fbshipit-source-id: 5324598c75793523aef1bb7ee225a5475e95a9cb
      6f4154d6
  5. 13 6月, 2017 7 次提交
  6. 12 6月, 2017 2 次提交
  7. 10 6月, 2017 1 次提交
  8. 09 6月, 2017 5 次提交
  9. 07 6月, 2017 2 次提交
  10. 06 6月, 2017 7 次提交
  11. 05 6月, 2017 1 次提交
  12. 03 6月, 2017 2 次提交