1. 17 11月, 2013 3 次提交
  2. 16 11月, 2013 5 次提交
    • P
      Fixed typos · 443e04e6
      Pascal Borreli 提交于
      443e04e6
    • S
      Add an option to table_reader_bench to access the table from DB And Iterating... · 55baa3d9
      Siying Dong 提交于
      Add an option to table_reader_bench to access the table from DB And Iterating non-existing prefix case.
      
      Summary: This patch adds an option to table_reader_bench that queries run against DB level (which has one table). It is useful if user wants to see the extra costs DB level introduces.
      
      Test Plan: Run the benchmark with and without the new parameter
      
      Reviewers: haobo, dhruba, kailiu
      
      Reviewed By: kailiu
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D13863
      55baa3d9
    • K
      Fix typo. · 3d56b069
      Kai Liu 提交于
      3d56b069
    • I
      Start DeleteFileTest with clean plate · 21905dd4
      Igor Canadi 提交于
      Summary:
      Remove all the files from the test dir before the test. The test failed when there were some old files still in the directory, since it checks the file counts.
      This is what caused jenkins' test failures. It was running fine on my machine so it was hard to repro.
      
      Test Plan:
      1. create an extra 000001.log file in the test directory
      2. run a ./deletefile_test - test failes
      3. patch ./deletefile_test with this
      4. test succeeds
      
      Reviewers: haobo, dhruba
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D14097
      21905dd4
    • K
      Fix a typo in README · bd828264
      Kai Liu 提交于
      bd828264
  3. 15 11月, 2013 4 次提交
  4. 14 11月, 2013 1 次提交
  5. 13 11月, 2013 12 次提交
    • K
      Add the correct table_factory for tables in table_tests · 80bb81c6
      Kai Liu 提交于
      80bb81c6
    • K
      Add the index/filter block cache · 88ba331c
      Kai Liu 提交于
      Summary: This diff leverage the existing block cache and extend it to cache index/filter block.
      
      Test Plan:
      Added new tests in db_test and table_test
      
      The correctness is checked by:
      
      1. make check
      2. make valgrind_check
      
      Performance is test by:
      
      1. 10 times of build_tools/regression_build_test.sh on two versions of rocksdb before/after the code change. Test results suggests no significant difference between them. For the two key operatons `overwrite` and `readrandom`, the average iops are both 20k and ~260k, with very small variance).
      2. db_stress.
      
      Reviewers: dhruba
      
      Reviewed By: dhruba
      
      CC: leveldb, haobo, xjin
      
      Differential Revision: https://reviews.facebook.net/D13167
      88ba331c
    • K
      The updated sed still doesn't work in mac, revert. · aed9f1fa
      Kai Liu 提交于
      aed9f1fa
    • K
      Fix a sed command issue that cannot generated *.d files · f3b3316a
      Kai Liu 提交于
      Summary:
      
      The original sed command is not recognized by mac's sed, which generates ".d-e" extension instead of ".d"
      
      Test Plan:
      
      make clean && make -j32
      f3b3316a
    • K
      Quick fix for a string format · 22e1b04d
      Kai Liu 提交于
      Summary:
      
      Fix one more string format issue that throws warning in mac
      22e1b04d
    • K
      Fix the string format issue · 35460ccb
      Kai Liu 提交于
      Summary:
      
      mac and our dev server has totally differnt definition of uint64_t, therefore fixing the warning in mac has actually made code in linux uncompileable.
      
      Test Plan:
      
      make clean && make -j32
      35460ccb
    • I
      Fix deleting files · d88d8ecf
      Igor Canadi 提交于
      Summary: One more fix! In some cases, our filenames start with "/". Apparently, env_ can't handle filenames with double //
      
      Test Plan:
      deletefile_test does not include this line in the LOG anymore:
      2013/11/12-18:11:43.150149 7fe4a6fff700 RenameFile logfile #3 FAILED -- IO error: /tmp/rocksdbtest-3574/deletefile_test//000003.log: No such file or directory
      
      Reviewers: dhruba, haobo
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D14055
      d88d8ecf
    • K
      Fixing the warning messages captured under mac os # Consider using `git commit... · 21587760
      kailiu 提交于
      Fixing the warning messages captured under mac os # Consider using `git commit -m 'One line title' && arc diff`. # You will save time by running lint and unit in the background.
      
      Summary: The work to make sure mac os compiles rocksdb is not completed yet. But at least we can start cleaning some warnings captured only by g++ from mac os..
      
      Test Plan: ran make in mac os
      
      Reviewers: dhruba
      
      Reviewed By: dhruba
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D14049
      21587760
    • I
      Update documentation · c3dda727
      Igor Canadi 提交于
      Summary:
      Added more options for compaction settings + thread pools.
      
      Please check if thread pool description is correct.
      
      Test Plan: -
      
      Reviewers: dhruba
      
      Reviewed By: dhruba
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D14043
      c3dda727
    • I
      Move fast and break things · 9df2b217
      Igor Canadi 提交于
      Summary:
      Broke the compile when I removed purge_log_after_memtable_flush.
      
      sorrybus
      
      Test Plan: make db_bench works now
      
      Reviewers: haobo
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D14037
      9df2b217
    • I
      Small changes in Deleting obsolete files · 9bc4a26f
      Igor Canadi 提交于
      Summary:
      @haobo's suggestions from https://reviews.facebook.net/D13827
      
      Renaming some variables, deprecating purge_log_after_flush, changing for loop into auto for loop.
      
      I have not implemented deleting objects outside of mutex yet because it would require a big code change - we would delete object in db_impl, which currently does not know anything about object because it's defined in version_edit.h (FileMetaData). We should do it at some point, though.
      
      Test Plan: Ran deletefile_test
      
      Reviewers: haobo
      
      Reviewed By: haobo
      
      CC: leveldb, haobo
      
      Differential Revision: https://reviews.facebook.net/D14025
      9bc4a26f
    • I
      Move the comment · dad42556
      Igor Canadi 提交于
      Summary: Moving the comment per @haobo suggestion.
      
      Test Plan: No
      
      Reviewers: haobo
      
      Reviewed By: haobo
      
      CC: leveldb, haobo
      
      Differential Revision: https://reviews.facebook.net/D14019
      dad42556
  6. 12 11月, 2013 5 次提交
  7. 11 11月, 2013 1 次提交
  8. 10 11月, 2013 1 次提交
  9. 09 11月, 2013 3 次提交
    • L
      WriteBatch::Put() overload that gathers key and value from arrays of slices · 8a46ecd3
      lovro 提交于
      Summary: In our project, when writing to the database, we want to form the value as the concatenation of a small header and a larger payload.  It's a shame to have to copy the payload just so we can give RocksDB API a linear view of the value.  Since RocksDB makes a copy internally, it's easy to support gather writes.
      
      Test Plan: write_batch_test, new test case
      
      Reviewers: dhruba
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D13947
      8a46ecd3
    • I
      Speed up FindObsoleteFiles · 1510339e
      Igor Canadi 提交于
      Summary:
      Here's one solution we discussed on speeding up FindObsoleteFiles. Keep a set of all files in DBImpl and update the set every time we create a file. I probably missed few other spots where we create a file.
      
      It might speed things up a bit, but makes code uglier. I don't really like it.
      
      Much better approach would be to abstract all file handling to a separate class. Think of it as layer between DBImpl and Env. Having a separate class deal with file namings and deletion would benefit both code cleanliness (especially with huge DBImpl) and speed things up. It will take a huge effort to do this, though.
      
      Let's discuss offline today.
      
      Test Plan: Ran ./db_stress, verified that files are getting deleted
      
      Reviewers: dhruba, haobo, kailiu, emayanke
      
      Reviewed By: dhruba
      
      Differential Revision: https://reviews.facebook.net/D13827
      1510339e
    • I
      Forgot to change interface everywhere · dd218bbc
      Igor Canadi 提交于
      Summary: Changed the name and interface for creating HashSkipListRep. Forgot to change it in db_test.
      
      Test Plan: make db_test
      
      Reviewers: haobo
      
      Reviewed By: haobo
      
      Differential Revision: https://reviews.facebook.net/D13965
      dd218bbc
  10. 08 11月, 2013 4 次提交
    • I
      Implementing DynamicIterator for TransformRepNoLock · 8b3379dc
      Igor Canadi 提交于
      Summary: What @haobo done with TransformRep, now in TransformRepNoLock. Similar implementation, except that I made DynamicIterator a subclass of Iterator which makes me have less iterator initializations.
      
      Test Plan: ./prefix_test. Seeing huge savings vs. TransformRep again!
      
      Reviewers: dhruba, haobo, sdong, kailiu
      
      Reviewed By: haobo
      
      CC: leveldb, haobo
      
      Differential Revision: https://reviews.facebook.net/D13953
      8b3379dc
    • K
      Provide mechanism to configure when to flush the block · fd075d6e
      Kai Liu 提交于
      Summary: Allow block based table to configure the way flushing the blocks. This feature will allow us to add support for prefix-aligned block.
      
      Test Plan: make check
      
      Reviewers: dhruba, haobo, sdong, igor
      
      Reviewed By: sdong
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D13875
      fd075d6e
    • K
      Fix the valgrind error · bba6595b
      Kai Liu 提交于
      Summary: I this bug from valgrind report and found a place that may potentially leak memory.
      
      Test Plan: re-ran the valgrind and no error any more
      
      Reviewers: emayanke
      
      Reviewed By: emayanke
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D13959
      bba6595b
    • I
      Flush the log outside of lock · 444cf88a
      Igor Canadi 提交于
      Summary:
      Added a new call LogFlush() that flushes the log contents to the OS buffers. We never call it with lock held.
      
      We call it once for every Read/Write and often in compaction/flush process so the frequency should not be a problem.
      
      Test Plan: db_test
      
      Reviewers: dhruba, haobo, kailiu, emayanke
      
      Reviewed By: dhruba
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D13935
      444cf88a
  11. 07 11月, 2013 1 次提交
    • H
      [RocksDB] Generalize prefix-aware iterator to be used for more than one Seek · fd204488
      Haobo Xu 提交于
      Summary: Added a prefix_seek flag in ReadOptions to indicate that Seek is prefix aware(might not return data with different prefix), and also not bound to a specific prefix. Multiple Seeks and range scans can be invoked on the same iterator. If a specific prefix is specified, this flag will be ignored. Just a quick prototype that works for PrefixHashRep, the new lockless memtable could be easily extended with this support too.
      
      Test Plan: test it on Leaf
      
      Reviewers: dhruba, kailiu, sdong, igor
      
      Reviewed By: igor
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D13929
      fd204488