1. 26 4月, 2014 1 次提交
  2. 19 4月, 2014 1 次提交
    • J
      Added period · a7450895
      James Pearce 提交于
      This is a PR to test some tooling; please do not merge without talking to @jamesgpearce :)
      a7450895
  3. 11 4月, 2014 1 次提交
  4. 05 4月, 2014 1 次提交
    • S
      Update HISTORY.md · f01a04ea
      sdong 提交于
      Summary: Update HISTORY.md to make existing items to 2.8 release and add something I think is missing.
      
      Test Plan: N/A
      
      Reviewers: haobo, igor, ljin, dhruba, yhchiang, xjin
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17517
      f01a04ea
  5. 03 4月, 2014 1 次提交
  6. 01 4月, 2014 1 次提交
  7. 29 3月, 2014 1 次提交
  8. 26 3月, 2014 1 次提交
  9. 25 3月, 2014 1 次提交
    • D
      [rocksdb] new CompactionFilterV2 API · b47812fb
      Danny Guo 提交于
      Summary:
      This diff adds a new CompactionFilterV2 API that roll up the
      decisions of kv pairs during compactions. These kv pairs must share the
      same key prefix. They are buffered inside the db.
      
          typedef std::vector<Slice> SliceVector;
          virtual std::vector<bool> Filter(int level,
                                       const SliceVector& keys,
                                       const SliceVector& existing_values,
                                       std::vector<std::string>* new_values,
                                       std::vector<bool>* values_changed
                                       ) const = 0;
      
      Application can override the Filter() function to operate
      on the buffered kv pairs. More details in the inline documentation.
      
      Test Plan:
      make check. Added unit tests to make sure Keep, Delete,
      Change all works.
      
      Reviewers: haobo
      
      CCs: leveldb
      
      Differential Revision: https://reviews.facebook.net/D15087
      b47812fb
  10. 21 3月, 2014 2 次提交
  11. 19 3月, 2014 1 次提交
  12. 13 3月, 2014 1 次提交
    • I
      [CF] Code cleanup part 1 · fb2346fc
      Igor Canadi 提交于
      Summary:
      I'm cleaning up some code preparing for the big diff review tomorrow. This is the first part of the cleanup.
      
      Changes are mostly cosmetic. The goal is to decrease amount of code difference between columnfamilies and master branch.
      
      This diff also fixes race condition when dropping column family.
      
      Test Plan: Ran db_stress with variety of parameters
      
      Reviewers: dhruba, haobo
      
      Differential Revision: https://reviews.facebook.net/D16833
      fb2346fc
  13. 12 3月, 2014 1 次提交
  14. 11 3月, 2014 2 次提交
    • L
      Consolidate SliceTransform object ownership · 8d007b4a
      Lei Jin 提交于
      Summary:
      (1) Fix SanitizeOptions() to also check HashLinkList. The current
      dynamic case just happens to work because the 2 classes have the same
      layout.
      (2) Do not delete SliceTransform object in HashSkipListFactory and
      HashLinkListFactory destructor. Reason: SanitizeOptions() enforces
      prefix_extractor and SliceTransform to be the same object when
      Hash**Factory is used. This makes the behavior strange: when
      Hash**Factory is used, prefix_extractor will be released by RocksDB. If
      other memtable factory is used, prefix_extractor should be released by
      user.
      
      Test Plan: db_bench && make asan_check
      
      Reviewers: haobo, igor, sdong
      
      Reviewed By: igor
      
      CC: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D16587
      8d007b4a
    • I
      Add option verify_checksums_in_compaction · 04d2c26e
      Igor Canadi 提交于
      Summary:
      If verify_checksums_in_compaction is true, compaction will verify checksums. This is default.
      If it's false, compaction doesn't verify checksums. This is useful for in-memory workloads.
      
      Test Plan: corruption_test
      
      Reviewers: dhruba
      
      Reviewed By: dhruba
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16695
      04d2c26e
  15. 05 3月, 2014 1 次提交
    • I
      Some fixes to BackupableDB · e3f396f1
      Igor Canadi 提交于
      Summary:
      (1) Report corruption if backup meta file has tailing data that was not read. This should fix: https://github.com/facebook/rocksdb/issues/81 (also, @sdong reported similar issue)
      (2) Don't use OS buffer when copying file to backup directory. We don't need the file in cache since we won't be reading it twice
      (3) Don't delete newer backups when somebody tries to backup the diverged DB (restore from older backup, add new data, try to backup). Rather, just fail the new backup.
      
      Test Plan: backupable_db_test
      
      Reviewers: ljin, dhruba, sdong
      
      Reviewed By: ljin
      
      CC: leveldb, sdong
      
      Differential Revision: https://reviews.facebook.net/D16287
      e3f396f1
  16. 01 3月, 2014 1 次提交
    • I
      Make Log::Reader more robust · 58ca641d
      Igor Canadi 提交于
      Summary:
      This diff does two things:
      (1) Log::Reader does not report a corruption when the last record in a log or manifest file is truncated (meaning that log writer died in the middle of the write). Inherited the code from LevelDB: https://code.google.com/p/leveldb/source/detail?r=269fc6ca9416129248db5ca57050cd5d39d177c8#
      (2) Turn off mmap writes for all writes to log and manifest files
      
      (2) is necessary because if we use mmap writes, the last record is not truncated, but is actually filled with zeros, making checksum fail. It is hard to recover from checksum failing.
      
      Test Plan:
      Added unit tests from LevelDB
      Actually recovered a "corrupted" MANIFEST file.
      
      Reviewers: dhruba, haobo
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16119
      58ca641d
  17. 27 2月, 2014 1 次提交
    • I
      [CF] Handle failure in WriteBatch::Handler · 8b7ab995
      Igor Canadi 提交于
      Summary:
      * Add ColumnFamilyHandle::GetID() function. Client needs to know column family's ID to be able to construct WriteBatch
      * Handle WriteBatch::Handler failure gracefully. Since WriteBatch is not a very smart function (it takes raw CF id), client can add data to WriteBatch for column family that doesn't exist. In that case, we need to gracefully return failure status from DB::Write(). To do that, I added a return Status to WriteBatch functions PutCF, DeleteCF and MergeCF.
      
      Test Plan: Added test to column_family_test
      
      Reviewers: dhruba, haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D16323
      8b7ab995
  18. 26 2月, 2014 1 次提交
    • L
      thread local pointer storage · b2795b79
      Lei Jin 提交于
      Summary:
      This is not a generic thread local implementation in the sense that it
      only takes pointer. But it does support multiple instances per thread
      and lets user plugin function to perform cleanup when thread exits or an
      instance gets destroyed.
      
      Test Plan: unit test for now
      
      Reviewers: haobo, igor, sdong, dhruba
      
      Reviewed By: igor
      
      CC: leveldb, kailiu
      
      Differential Revision: https://reviews.facebook.net/D16131
      b2795b79
  19. 13 2月, 2014 1 次提交
  20. 07 2月, 2014 2 次提交
    • K
      Update HISTORY.md · dcea1849
      Kai Liu 提交于
      Remove the unnecessary line led from branch merge.
      dcea1849
    • I
      Flushes should always go to HIGH priority thread pool · 0b4ccf76
      Igor Canadi 提交于
      Summary:
      This is not column-family related diff. It is in columnfamily branch because the change is significant and we want to push it with next major release (3.0).
      
      It removes the leveldb notion of one thread pool and expands it to two thread pools by default (HIGH and LOW). Flush process is removed from compaction process and all flush threads are executed on HIGH thread pool, since we don't want long-running compactions to influence flush latency.
      
      Test Plan: make check
      
      Reviewers: dhruba, haobo, kailiu, sdong
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D15987
      0b4ccf76
  21. 01 2月, 2014 1 次提交
  22. 31 1月, 2014 1 次提交
    • K
      Clean up arena API · 4e0298f2
      kailiu 提交于
      Summary:
      Easy thing goes first. This patch moves arena to internal dir; based
      on which, the coming patch will deal with memtable_rep.
      
      Test Plan: make check
      
      Reviewers: haobo, sdong, dhruba
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D15615
      4e0298f2
  23. 29 1月, 2014 1 次提交
    • K
      Add history log and revise script · 9fe60d50
      kailiu 提交于
      Summary:
      * Add a change log for rocksdb releases.
      * Remove the hacky parts of make_new_version.sh, which are either
        no longer useful or will be done in our dedicated 3rd-party release
        tool.
      
      Test Plan: N/A
      
      Reviewers: igor, haobo, sdong, dhruba
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D15543
      9fe60d50