1. 15 9月, 2012 1 次提交
  2. 14 9月, 2012 3 次提交
  3. 13 9月, 2012 1 次提交
  4. 07 9月, 2012 3 次提交
  5. 05 9月, 2012 3 次提交
  6. 30 8月, 2012 4 次提交
    • D
      Release 1.5.0.fb. · 8bab0568
      Dhruba Borthakur 提交于
      Summary:
      
      Test Plan:
      
      Reviewers:
      
      CC:
      
      Task ID: #
      
      Blame Rev:
      8bab0568
    • D
      Add libhdfs.a to the build process. · f0b1654f
      Dhruba Borthakur 提交于
      Fix compilcation error for hdfs build.
      
      Summary:
      
      Test Plan:
      
      Reviewers:
      
      CC:
      
      Task ID: #
      
      Blame Rev:
      f0b1654f
    • D
      Clean up compiler warnings generated by -Wall option. · fe936316
      Dhruba Borthakur 提交于
      Summary:
      Clean up compiler warnings generated by -Wall option.
      make clean all OPT=-Wall
      
      This is a pre-requisite before making a new release.
      
      Test Plan: compile and run unit tests
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      Differential Revision: https://reviews.facebook.net/D5019
      fe936316
    • D
      The sharding of the block cache is limited to 2*20 pieces. · e5fe80e4
      Dhruba Borthakur 提交于
      Summary:
      The numbers of shards that the block cache is divided into is
      configurable. However, if the user specifies that he/she wants
      the block cache to be divided into more than 2**20 pieces, then
      the system will rey to allocate a huge array of that size) that
      could fail.
      
      It is better to limit the sharding of the block cache to an
      upper bound. The default sharding is 16 shards (i.e. 2**4)
      and the maximum is now 2 million shards (i.e. 2**20).
      
      Also, fixed a bug with the LRUCache where the numShardBits
      should be a private member of the LRUCache object rather than
      a static variable.
      
      Test Plan:
      run db_bench with --cache_numshardbits=64.
      
      Task ID: #
      
      Blame Rev:
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      Differential Revision: https://reviews.facebook.net/D5013
      e5fe80e4
  7. 29 8月, 2012 5 次提交
  8. 28 8月, 2012 1 次提交
    • D
      Introduce a new method Env->Fsync() that issues fsync (instead of fdatasync). · fc20273e
      Dhruba Borthakur 提交于
      Summary:
      Introduce a new method Env->Fsync() that issues fsync (instead of fdatasync).
      This is needed for data durability when running on ext3 filesystems.
      Added options to the benchmark db_bench to generate performance numbers
      with either fsync or fdatasync enabled.
      
      Cleaned up Makefile to build leveldb_shell only when building the thrift
      leveldb server.
      
      Test Plan: build and run benchmark
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      Differential Revision: https://reviews.facebook.net/D4911
      fc20273e
  9. 25 8月, 2012 9 次提交
    • H
      number to read is not resepected · e675351a
      heyongqiang 提交于
      Summary: as subject
      
      Test Plan: sst_dump --command=scan --file=
      
      Reviewers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D4887
      e675351a
    • H
      7cd64402
    • H
      add more logs · 1de83cc2
      heyongqiang 提交于
      Summary:
      as subject
      
      add a tool to read sst file
      
      as subject.
      
      ./sst_reader --command=check --file=
      ./sst_reader --command=scan --file=
      
      Test Plan:
      db_test
      
      run this command
      
      Reviewers: dhruba
      
      Reviewed By: dhruba
      
      Differential Revision: https://reviews.facebook.net/D4881
      1de83cc2
    • H
      sst_dump tool · 64219276
      heyongqiang 提交于
      Summary:
      as subject
      
      add a tool to read sst file
      
      as subject.
      
      ./sst_reader --command=check --file=
      ./sst_reader --command=scan --file=
      
      Test Plan:
      db_test
      
      run this command
      
      Reviewers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D4881
      64219276
    • H
      add more logs · 1c99b0a6
      heyongqiang 提交于
      Summary:
      
      as subject
      
      Test Plan:db_test
      
      Reviewers: dhruba
      1c99b0a6
    • D
      Record the version of the source repository that was used to build the leveldb library. · 5d96f290
      Dhruba Borthakur 提交于
      Summary: Record the version of the source that we are compiling. We keep a record of the git revision in util/version.cc. This source file is then built as a regular source file as part of the compilation process. One can run "strings executable_filename | grep _build_" to find the version of the source that we used to build the executable file.
      
      Test Plan: none
      
      Differential Revision: https://reviews.facebook.net/D4785
      5d96f290
    • D
      Prevent concurrent multiple opens of leveldb database. · d41316bc
      Dhruba Borthakur 提交于
      Summary:
      The fcntl call cannot detect lock conflicts when invoked multiple times
      from the same thread.
      Use a static lockedFile Set to record the paths that are locked.
      A lockfile request checks to see if htis filename already exists in
      lockedFiles, if so, then it triggers an error. Otherwise, it inserts
      the filename in the lockedFiles Set.
      A unlock file request verifies that the filename is in the lockedFiles
      set and removes it from lockedFiles set.
      
      Test Plan: unit test attached
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      Differential Revision: https://reviews.facebook.net/D4755
      d41316bc
    • D
      Utility to dump manifest contents. · f3ee5452
      Dhruba Borthakur 提交于
      Summary:
      ./manifest_dump --file=/tmp/dbbench/MANIFEST-000002
      
      Output looks like
      
      manifest_file_number 30 next_file_number 31 last_sequence 388082 log_number 28  prev_log_number 0
      --- level 0 ---
      --- level 1 ---
      --- level 2 ---
       5:3244155['0000000000000000' @ 1 : 1 .. '0000000000028220' @ 28221 : 1]
       7:3244177['0000000000028221' @ 28222 : 1 .. '0000000000056441' @ 56442 : 1]
       9:3244156['0000000000056442' @ 56443 : 1 .. '0000000000084662' @ 84663 : 1]
       11:3244178['0000000000084663' @ 84664 : 1 .. '0000000000112883' @ 112884 : 1]
       13:3244158['0000000000112884' @ 112885 : 1 .. '0000000000141104' @ 141105 : 1]
       15:3244176['0000000000141105' @ 141106 : 1 .. '0000000000169325' @ 169326 : 1]
       17:3244156['0000000000169326' @ 169327 : 1 .. '0000000000197546' @ 197547 : 1]
       19:3244178['0000000000197547' @ 197548 : 1 .. '0000000000225767' @ 225768 : 1]
       21:3244155['0000000000225768' @ 225769 : 1 .. '0000000000253988' @ 253989 : 1]
       23:3244179['0000000000253989' @ 253990 : 1 .. '0000000000282209' @ 282210 : 1]
       25:3244157['0000000000282210' @ 282211 : 1 .. '0000000000310430' @ 310431 : 1]
       27:3244176['0000000000310431' @ 310432 : 1 .. '0000000000338651' @ 338652 : 1]
       29:3244156['0000000000338652' @ 338653 : 1 .. '0000000000366872' @ 366873 : 1]
      --- level 3 ---
      --- level 4 ---
      --- level 5 ---
      --- level 6 ---
      
      Test Plan: run on test directory created by dbbench
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      CC: hustliubo
      
      Differential Revision: https://reviews.facebook.net/D4743
      f3ee5452
    • H
      e3bf8f0a
  10. 24 8月, 2012 2 次提交
  11. 23 8月, 2012 2 次提交
  12. 22 8月, 2012 5 次提交
  13. 21 8月, 2012 1 次提交
    • D
      Prevent concurrent multiple opens of leveldb database. · e56b2c5a
      Dhruba Borthakur 提交于
      Summary:
      The fcntl call cannot detect lock conflicts when invoked multiple times
      from the same thread.
      Use a static lockedFile Set to record the paths that are locked.
      A lockfile request checks to see if htis filename already exists in
      lockedFiles, if so, then it triggers an error. Otherwise, it inserts
      the filename in the lockedFiles Set.
      A unlock file request verifies that the filename is in the lockedFiles
      set and removes it from lockedFiles set.
      
      Test Plan: unit test attached
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      Differential Revision: https://reviews.facebook.net/D4755
      e56b2c5a