1. 21 5月, 2014 3 次提交
  2. 15 5月, 2014 1 次提交
    • I
      Improve EnvHdfs · eea73226
      Igor Canadi 提交于
      Summary: Copy improvements from fbcode's version of EnvHdfs to our open-source version. Some very important bug fixes in there.
      
      Test Plan: compiles
      
      Reviewers: dhruba, haobo, sdong
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D18711
      eea73226
  3. 27 2月, 2014 1 次提交
    • Y
      Enable log info with different levels. · ccaedd16
      Yueh-Hsuan Chiang 提交于
      Summary:
      * Now each Log related function has a variant that takes an additional
        argument indicating its log level, which is one of the following:
       - DEBUG, INFO, WARN, ERROR, FATAL.
      
      * To ensure backward-compatibility, old version Log functions are kept
        unchanged.
      
      * Logger now has a member variable indicating its log level.  Any incoming
        Log request which log level is lower than Logger's log level will not
        be output.
      
      * The output of the newer version Log will be prefixed by its log level.
      
      Test Plan:
      Add a LogType test in auto_roll_logger_test.cc
      
       = Sample log output =
          2014/02/11-00:03:07.683895 7feded179840 [DEBUG] this is the message to be written to the log file!!
          2014/02/11-00:03:07.683898 7feded179840 [INFO] this is the message to be written to the log file!!
          2014/02/11-00:03:07.683900 7feded179840 [WARN] this is the message to be written to the log file!!
          2014/02/11-00:03:07.683903 7feded179840 [ERROR] this is the message to be written to the log file!!
          2014/02/11-00:03:07.683906 7feded179840 [FATAL] this is the message to be written to the log file!!
      
      Reviewers: dhruba, xjin, kailiu
      
      Reviewed By: kailiu
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16071
      ccaedd16
  4. 28 1月, 2014 1 次提交
    • I
      Fsync directory after we create a new file · 832158e7
      Igor Canadi 提交于
      Summary:
      @dhruba, I'm not sure where we need to sync the directory. I implemented the function in Env() and added the dir sync just after we close the newly created file in the builder.
      
      Should I also add FsyncDir() to new files that get created by a compaction?
      
      Test Plan: Confirmed that FsyncDir is returning Status::OK()
      
      Reviewers: dhruba, haobo
      
      Reviewed By: dhruba
      
      CC: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D14751
      832158e7
  5. 17 10月, 2013 1 次提交
  6. 10 10月, 2013 1 次提交
    • I
      Fixing build failure · d2ca2bd1
      Igor Canadi 提交于
      Summary: virtual NewRandomRWFile is not implemented on EnvHdfs, causing build failure.
      
      Test Plan: make clean; make all check
      
      Reviewers: dhruba, haobo, kailiu
      
      Reviewed By: kailiu
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D13383
      d2ca2bd1
  7. 06 10月, 2013 1 次提交
  8. 05 10月, 2013 1 次提交
  9. 24 8月, 2013 1 次提交
  10. 21 3月, 2013 1 次提交
    • D
      Ability to configure bufferedio-reads, filesystem-readaheads and mmap-read-write per database. · ad96563b
      Dhruba Borthakur 提交于
      Summary:
      This patch allows an application to specify whether to use bufferedio,
      reads-via-mmaps and writes-via-mmaps per database. Earlier, there
      was a global static variable that was used to configure this functionality.
      
      The default setting remains the same (and is backward compatible):
       1. use bufferedio
       2. do not use mmaps for reads
       3. use mmap for writes
       4. use readaheads for reads needed for compaction
      
      I also added a parameter to db_bench to be able to explicitly specify
      whether to do readaheads for compactions or not.
      
      Test Plan: make check
      
      Reviewers: sheki, heyongqiang, MarkCallaghan
      
      Reviewed By: sheki
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D9429
      ad96563b
  11. 01 3月, 2013 1 次提交
  12. 24 1月, 2013 1 次提交
    • C
      Fix a number of object lifetime/ownership issues · 2fdf91a4
      Chip Turner 提交于
      Summary:
      Replace manual memory management with std::unique_ptr in a
      number of places; not exhaustive, but this fixes a few leaks with file
      handles as well as clarifies semantics of the ownership of file handles
      with log classes.
      
      Test Plan: db_stress, make check
      
      Reviewers: dhruba
      
      Reviewed By: dhruba
      
      CC: zshao, leveldb, heyongqiang
      
      Differential Revision: https://reviews.facebook.net/D8043
      2fdf91a4
  13. 29 11月, 2012 2 次提交
    • S
      Move WAL files to archive directory, instead of deleting. · d4627e6d
      sheki 提交于
      Summary:
      Create a directory "archive" in the DB directory.
      During DeleteObsolteFiles move the WAL files (*.log) to the Archive directory,
      instead of deleting.
      
      Test Plan: Created a DB using DB_Bench. Reopened it. Checked if files move.
      
      Reviewers: dhruba
      
      Reviewed By: dhruba
      
      Differential Revision: https://reviews.facebook.net/D6975
      d4627e6d
    • A
      Fix all the lint errors. · d29f1819
      Abhishek Kona 提交于
      Summary:
      Scripted and removed all trailing spaces and converted all tabs to
      spaces.
      
      Also fixed other lint errors.
      All lint errors from this point of time should be taken seriously.
      
      Test Plan: make all check
      
      Reviewers: dhruba
      
      Reviewed By: dhruba
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D7059
      d29f1819
  14. 30 8月, 2012 1 次提交
  15. 14 6月, 2012 1 次提交