1. 18 4月, 2014 8 次提交
    • Y
      [Java] Add a basic binding and test for BackupableDB and StackableDB. · bb6fd15a
      Yueh-Hsuan Chiang 提交于
      Summary:
      Add a skeleton binding and test for BackupableDB which shows that BackupableDB
      and RocksDB can share the same JNI calls.
      
      Test Plan:
      make rocksdbjava
      make jtest
      
      Reviewers: haobo, ankgup87, sdong, dhruba
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17793
      bb6fd15a
    • S
      Fix bugs introduced by D17961 · 65179225
      sdong 提交于
      Summary:
      D17961 has two bugs:
      (1) two level iterator fails to populate FileMetaData.table_reader, causing performance regression.
      (2) table cache handle the !status.ok() case in the wrong place, causing seg fault which shouldn't happen.
      
      Test Plan: make all check
      
      Reviewers: ljin, igor, haobo
      
      Reviewed By: ljin
      
      CC: yhchiang, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D17991
      65179225
    • I
      Nuke tools/shell · ce353c24
      Igor Canadi 提交于
      Summary: We don't use or build this code
      
      Test Plan: builds
      
      Reviewers: dhruba
      
      Reviewed By: dhruba
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17979
      ce353c24
    • I
      Fix ifdef NDEBUG · 86ae8203
      Igor Canadi 提交于
      86ae8203
    • S
      Minimize accessing multiple objects in Version::Get() · fa430bfd
      sdong 提交于
      Summary:
      One of our profilings shows that Version::Get() sometimes is slow when getting pointer of user comparators or other global objects. In this patch:
      (1) we keep pointers of immutable objects in Version to avoid accesses them though option objects or cfd objects
      (2) table_reader is directly cached in FileMetaData so that table cache don't have to go through handle first to fetch it
      (3) If level 0 has less than 3 files, skip the filtering logic based on SST tables' key range. Smallest and largest key are stored in separated memory locations, which has potential cache misses
      
      Test Plan: make all check
      
      Reviewers: haobo, ljin
      
      Reviewed By: haobo
      
      CC: igor, yhchiang, nkg-, leveldb
      
      Differential Revision: https://reviews.facebook.net/D17739
      fa430bfd
    • K
      Index type doesn't have to be persisted · e37dd216
      Kai Liu 提交于
      Summary:
      
      With the recent changes, there is no need to check the property block about the index block type.
      If user want to use it, they don't really need any disk format change; everything happens in the fly.
      
      Also another team encountered an error while reading the index type from properties.
      
      Test Plan:
      
      ran all the tests
      
      Reviewers: sdong
      
      CC:
      
      Task ID: #
      
      Blame Rev:
      e37dd216
    • I
      Don't compile sync_point if NDEBUG · 62551b1c
      Igor Canadi 提交于
      Summary:
      We don't really need sync_point.o if we're compiling with NDEBUG.
      
      This diff depends on D17823
      
      Test Plan: compiles
      
      Reviewers: haobo, ljin, sdong
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17829
      62551b1c
    • S
      RocksDB 2.8 to be able to read files generated by 2.6 · 5cef458a
      sdong 提交于
      Summary:
      From 2.6 to 2.7, property block name is renamed from rocksdb.stats to rocksdb.properties. Older properties were not able to be loaded. In 2.8, we seem to have added some logic that uses property block without checking null pointers, which create segment faults.
      
      In this patch, we fix it by:
      (1) try rocksdb.stats if rocksdb.properties is not found
      (2) add some null checking before consuming rep->table_properties
      
      Test Plan: make sure a file generated in 2.7 couldn't be opened now can be opened.
      
      Reviewers: haobo, igor, yhchiang
      
      Reviewed By: igor
      
      CC: ljin, xjin, dhruba, kailiu, leveldb
      
      Differential Revision: https://reviews.facebook.net/D17961
      5cef458a
  2. 17 4月, 2014 2 次提交
  3. 16 4月, 2014 12 次提交
  4. 15 4月, 2014 9 次提交
  5. 12 4月, 2014 6 次提交
  6. 11 4月, 2014 3 次提交
    • K
      Use shorten index key for hash-index · e23e73e6
      Kai Liu 提交于
      Summary:
      I was wrong about the "index builder", right now since we create index
      by scanning both whole table and index, there is not need to preserve
      the whole key as the index key.
      
      I switch back to original way index which is both space efficient and
      able to supprot in-fly construction of hash index.
      
      IN this patch, I made minimal change since I'm not sure if we still need
      the "pluggable index builder", under current circumstance it is of no use
      and kind of over-engineered. But I'm not sure if we can still exploit its
      usefulness in the future; otherwise I think I can just burn them with great
      vengeance.
      
      Test Plan: unit tests
      
      Reviewers: sdong, haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17745
      e23e73e6
    • I
      No shadow in public headers · b3d7435b
      Igor Canadi 提交于
      b3d7435b
    • K
      Temporarily disable a test case in db_test · 1405232b
      Kai Liu 提交于
      Summary:
      
      Root cause is still under investigation. Just Disable the troubling use case for now.
      1405232b