1. 17 6月, 2014 1 次提交
  2. 11 4月, 2014 1 次提交
  3. 10 4月, 2014 1 次提交
    • I
      Turn on -Wmissing-prototypes · 4daea663
      Igor Canadi 提交于
      Summary: Compiling for iOS has by default turned on -Wmissing-prototypes, which causes rocksdb to fail compiling. This diff turns on -Wmissing-prototypes in our compile options and cleans up all functions with missing prototypes.
      
      Test Plan: compiles
      
      Reviewers: dhruba, haobo, ljin, sdong
      
      Reviewed By: ljin
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17649
      4daea663
  4. 28 2月, 2014 2 次提交
  5. 27 2月, 2014 2 次提交
    • K
      Make sure logger is safely released in `InfoLogLevel` · e41c060a
      kailiu 提交于
      Summary: fix the memory leak that was captured by jenkin build.
      
      Test Plan: ran the valgrind test locally
      
      Reviewers: yhchiang
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16389
      e41c060a
    • 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
  6. 05 2月, 2014 1 次提交
    • I
      [CF] Split SanitizeOptions into two · 73f62255
      Igor Canadi 提交于
      Summary:
      There are three SanitizeOption-s now : one for DBOptions, one for ColumnFamilyOptions and one for Options (which just calls the other two)
      
      I have also reshuffled some options -- table_cache options and info_log should live in DBOptions, for example.
      
      Test Plan: make check doesn't complain
      
      Reviewers: dhruba, haobo, kailiu, sdong
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D15873
      73f62255
  7. 17 10月, 2013 1 次提交
  8. 06 10月, 2013 1 次提交
  9. 05 10月, 2013 1 次提交
  10. 24 8月, 2013 1 次提交
  11. 22 5月, 2013 1 次提交
    • H
      [RocksDB] Fix PosixLogger and AutoRollLogger thread safety · 839f6db7
      Haobo Xu 提交于
      Summary:
      PosixLogger and AutoRollLogger do not seem to be thread safe.
      For PosixLogger, log_size_ is not atomically updated.
      For AutoRollLogger, the underlying logger_ might be deleted by
      one thread while still being accessed by another.
      
      Test Plan: make check
      
      Reviewers: kailiu, dhruba, heyongqiang
      
      Reviewed By: kailiu
      
      CC: leveldb, zshao, sheki
      
      Differential Revision: https://reviews.facebook.net/D9699
      839f6db7
  12. 13 3月, 2013 1 次提交
  13. 19 2月, 2013 1 次提交
    • K
      Fix the "IO error" in auto_roll_logger_test · 45f00304
      Kai Liu 提交于
      Summary:
      
      I missed InitTestDb() in one of my tess. InitTestDb() initializes the test directory, without which the test will throw IO error.
      
      This problem didn't occur before because I've already run the tests before so the test directory is already there.
      
      Test Plan:
      
      Reviewers: dhruba
      
      CC:
      
      Task ID: #
      
      Blame Rev:
      45f00304
  14. 14 2月, 2013 1 次提交
  15. 05 2月, 2013 1 次提交
    • K
      Allow the logs to be purged by TTL. · b63aafce
      Kai Liu 提交于
      Summary:
      * Add a SplitByTTLLogger to enable this feature. In this diff I implemented generalized AutoSplitLoggerBase class to simplify the
      development of such classes.
      * Refactor the existing AutoSplitLogger and fix several bugs.
      
      Test Plan:
      * Added a unit tests for different types of "auto splitable" loggers individually.
      * Tested the composited logger which allows the log files to be splitted by both TTL and log size.
      
      Reviewers: heyongqiang, dhruba
      
      Reviewed By: heyongqiang
      
      CC: zshao, leveldb
      
      Differential Revision: https://reviews.facebook.net/D8037
      b63aafce