1. 12 12月, 2017 2 次提交
    • Z
      Make Universal compaction options dynamic · fcc8a657
      Zhongyi Xie 提交于
      Summary:
      Let me know if more test coverage is needed
      Closes https://github.com/facebook/rocksdb/pull/3213
      
      Differential Revision: D6457165
      
      Pulled By: miasantreble
      
      fbshipit-source-id: 3f944abff28aa7775237f1c4f61c64ccbad4eea9
      fcc8a657
    • P
      Fix coverity issues compaction_job, compaction_picker · 6a183d1a
      Prashant D 提交于
      Summary:
      db/compaction_job.cc:
        ReportStartedCompaction(compaction);
      
      CID 1419863 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
      2. uninit_member: Non-static class member bottommost_level_ is not initialized in this constructor nor in any functions that it calls.
      
      db/compaction_picker_universal.cc:
      7struct InputFileInfo {
         	2. uninit_member: Non-static class member level is not initialized in this constructor nor in any functions that it calls.
      
      CID 1405355 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
      4. uninit_member: Non-static class member index is not initialized in this constructor nor in any functions that it calls.
       38  InputFileInfo() : f(nullptr) {}
      
      db/dbformat.h:
       ParsedInternalKey()
       84      : sequence(kMaxSequenceNumber)  // Make code analyzer happy
      
      CID 1168095 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
      2. uninit_member: Non-static class member type is not initialized in this constructor nor in any functions that it calls.
       85  {}  // Intentionally left uninitialized (for speed)
      Closes https://github.com/facebook/rocksdb/pull/3091
      
      Differential Revision: D6534558
      
      Pulled By: yiwu-arbug
      
      fbshipit-source-id: 5ada975956196d267b3f149386842af71eda7553
      6a183d1a
  2. 17 8月, 2017 1 次提交
  3. 16 7月, 2017 1 次提交
  4. 06 6月, 2017 1 次提交
  5. 18 5月, 2017 1 次提交
    • M
      Support ingest_behind for IngestExternalFile · ba685a47
      Mikhail Antonov 提交于
      Summary:
      First cut for early review; there are few conceptual points to answer and some code structure issues.
      
      For conceptual points -
      
       - restriction-wise, we're going to disallow ingest_behind if (use_seqno_zero_out=true || disable_auto_compaction=false), the user is responsible to properly open and close DB with required params
       - we wanted to ingest into reserved bottom most level. Should we fail fast if bottom level isn't empty, or should we attempt to ingest if file fits there key-ranges-wise?
       - Modifying AssignLevelForIngestedFile seems the place we we'd handle that.
      
      On code structure - going to refactor GenerateAndAddExternalFile call in the test class to allow passing instance of IngestionOptions, that's just going to incur lots of changes at callsites.
      Closes https://github.com/facebook/rocksdb/pull/2144
      
      Differential Revision: D4873732
      
      Pulled By: lightmark
      
      fbshipit-source-id: 81cb698106b68ef8797f564453651d50900e153a
      ba685a47
  6. 28 4月, 2017 1 次提交
  7. 27 4月, 2017 1 次提交
  8. 07 4月, 2017 1 次提交
    • S
      Refactor compaction picker code · ff972870
      Siying Dong 提交于
      Summary:
      1. Move universal compaction picker to separate files compaction_picker_universal.cc and compaction_picker_universal.h.
      2. Rename some functions to make the code easier to understand.
      3. Move leveled compaction picking code to a dedicated class, so that we we don't need to pass some common variable around when calling functions. It also allowed us to break down LevelCompactionPicker::PickCompaction() to smaller functions.
      Closes https://github.com/facebook/rocksdb/pull/2100
      
      Differential Revision: D4845948
      
      Pulled By: siying
      
      fbshipit-source-id: efa0ab4
      ff972870