1. 24 3月, 2017 1 次提交
    • W
      Add C API functions (and tests) for WriteBatchWithIndex · 41ccae6d
      Warren Falk 提交于
      Summary:
      I've added functions to the C API to support WriteBatchWithIndex as requested in #1833.
      
      I've also added unit tests to c_test
      
      I've implemented the WriteBatchWithIndex variation of every function available for regular WriteBatch.  And added additional functions unique to WriteBatchWithIndex.
      
      For now, the following is omitted:
        1. The ability to create WriteBatchWithIndex's custom batch-only iterator as I'm not sure what its purpose is.  It should be possible to add later if anyone wants it.
        2. The ability to create the batch with a fallback comparator, since it appears to be unnecessary.  I believe the column family comparator will be used for this, meaning those using a custom comparator can just use the column family variations.
      Closes https://github.com/facebook/rocksdb/pull/1985
      
      Differential Revision: D4760039
      
      Pulled By: siying
      
      fbshipit-source-id: 393227e
      41ccae6d
  2. 21 1月, 2017 1 次提交
  3. 04 1月, 2017 1 次提交
  4. 22 12月, 2016 1 次提交
    • I
      Fix c_test · 1beef656
      Islam AbdelRahman 提交于
      Summary:
      addfile phase in c_test could fail because in previous steps we did a DeleteRange.
      Fix the test by simply moving the addfile phase before DeleteRange
      Closes https://github.com/facebook/rocksdb/pull/1672
      
      Differential Revision: D4328896
      
      Pulled By: IslamAbdelRahman
      
      fbshipit-source-id: 1d946df
      1beef656
  5. 16 12月, 2016 1 次提交
  6. 14 12月, 2016 1 次提交
  7. 08 12月, 2016 1 次提交
  8. 01 12月, 2016 1 次提交
  9. 17 11月, 2016 1 次提交
  10. 10 11月, 2016 1 次提交
    • Y
      Fix RocksDB Lite build failure in c_test.cc · a9fb346e
      Yueh-Hsuan Chiang 提交于
      Summary:
      Fix the following RocksDB Lite build failure in c_test.cc
      
      db/c_test.c:1051:3: error: implicit declaration of function 'fprintf' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        fprintf(stderr, "SKIPPED\n");
        ^
      db/c_test.c:1051:3: error: declaration of built-in function 'fprintf' requires inclusion of the header <stdio.h> [-Werror,-Wbuiltin-requires-header]
      db/c_test.c:1051:11: error: use of undeclared identifier 'stderr'
        fprintf(stderr, "SKIPPED\n");
                ^
      3 errors generated.
      Closes https://github.com/facebook/rocksdb/pull/1479
      
      Differential Revision: D4151160
      
      Pulled By: yhchiang
      
      fbshipit-source-id: a471a30
      a9fb346e
  11. 09 11月, 2016 2 次提交
  12. 04 11月, 2016 1 次提交
  13. 02 11月, 2016 1 次提交
  14. 13 9月, 2016 1 次提交
  15. 10 9月, 2016 1 次提交
  16. 28 4月, 2016 1 次提交
    • A
      Shared dictionary compression using reference block · 843d2e31
      Andrew Kryczka 提交于
      Summary:
      This adds a new metablock containing a shared dictionary that is used
      to compress all data blocks in the SST file. The size of the shared dictionary
      is configurable in CompressionOptions and defaults to 0. It's currently only
      used for zlib/lz4/lz4hc, but the block will be stored in the SST regardless of
      the compression type if the user chooses a nonzero dictionary size.
      
      During compaction, computes the dictionary by randomly sampling the first
      output file in each subcompaction. It pre-computes the intervals to sample
      by assuming the output file will have the maximum allowable length. In case
      the file is smaller, some of the pre-computed sampling intervals can be beyond
      end-of-file, in which case we skip over those samples and the dictionary will
      be a bit smaller. After the dictionary is generated using the first file in a
      subcompaction, it is loaded into the compression library before writing each
      block in each subsequent file of that subcompaction.
      
      On the read path, gets the dictionary from the metablock, if it exists. Then,
      loads that dictionary into the compression library before reading each block.
      
      Test Plan: new unit test
      
      Reviewers: yhchiang, IslamAbdelRahman, cyan, sdong
      
      Reviewed By: sdong
      
      Subscribers: andrewkr, yoshinorim, kradhakrishnan, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D52287
      843d2e31
  17. 23 4月, 2016 2 次提交
  18. 18 7月, 2015 1 次提交
    • I
      Deprecate CompactionFilterV2 · a96fcd09
      Igor Canadi 提交于
      Summary: It has been around for a while and it looks like it never found any uses in the wild. It's also complicating our compaction_job code quite a bit. We're deprecating it in 3.13, but will put it back in 3.14 if we actually find users that need this feature.
      
      Test Plan: make check
      
      Reviewers: noetzli, yhchiang, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D42405
      a96fcd09
  19. 02 7月, 2015 1 次提交
    • D
      Windows Port from Microsoft · 18285c1e
      Dmitri Smirnov 提交于
       Summary: Make RocksDb build and run on Windows to be functionally
       complete and performant. All existing test cases run with no
       regressions. Performance numbers are in the pull-request.
      
       Test plan: make all of the existing unit tests pass, obtain perf numbers.
      
       Co-authored-by: Praveen Rao praveensinghrao@outlook.com
       Co-authored-by: Sherlock Huang baihan.huang@gmail.com
       Co-authored-by: Alex Zinoviev alexander.zinoviev@me.com
       Co-authored-by: Dmitri Smirnov dmitrism@microsoft.com
      18285c1e
  20. 18 6月, 2015 1 次提交
  21. 09 6月, 2015 1 次提交
  22. 04 6月, 2015 3 次提交
  23. 30 5月, 2015 1 次提交
  24. 24 2月, 2015 1 次提交
  25. 09 2月, 2015 1 次提交
  26. 07 2月, 2015 1 次提交
  27. 26 11月, 2014 1 次提交
  28. 15 11月, 2014 1 次提交
  29. 12 11月, 2014 1 次提交
    • I
      Turn on -Wshorten-64-to-32 and fix all the errors · 767777c2
      Igor Canadi 提交于
      Summary:
      We need to turn on -Wshorten-64-to-32 for mobile. See D1671432 (internal phabricator) for details.
      
      This diff turns on the warning flag and fixes all the errors. There were also some interesting errors that I might call bugs, especially in plain table. Going forward, I think it makes sense to have this flag turned on and be very very careful when converting 64-bit to 32-bit variables.
      
      Test Plan: compiles
      
      Reviewers: ljin, rven, yhchiang, sdong
      
      Reviewed By: yhchiang
      
      Subscribers: bobbaldwin, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D28689
      767777c2
  30. 01 11月, 2014 2 次提交
    • L
      fix c_test · 82e3ae54
      Lei Jin 提交于
      Summary: as title
      
      Test Plan: ./c_test
      
      Reviewers: igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D28119
      82e3ae54
    • I
      Turn on -Wshadow · 9f7fc3ac
      Igor Canadi 提交于
      Summary:
      ...and fix all the errors :)
      
      Jim suggested turning on -Wshadow because it helped him fix number of critical bugs in fbcode. I think it's a good idea to be -Wshadow clean.
      
      Test Plan: compiles
      
      Reviewers: yhchiang, rven, sdong, ljin
      
      Reviewed By: ljin
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D27711
      9f7fc3ac
  31. 27 8月, 2014 1 次提交
  32. 26 8月, 2014 1 次提交
  33. 21 8月, 2014 1 次提交
  34. 19 8月, 2014 1 次提交
  35. 13 8月, 2014 1 次提交