1. 16 1月, 2015 3 次提交
    • Y
      Remove Compaction::ReleaseInputs(). · b229f970
      Yueh-Hsuan Chiang 提交于
      Summary:
      This patch remove the unnecessary Compaction::ReleaseInputs().
      
      Compaction::ReleaseInputs() tries to unref its input_version
      and column_family.  However, such unref is always done in
      ~Compaction(), and all current ReleaseInputs() calls are
      right before the destructor.
      
      Test Plan: ./db_test
      
      Reviewers: igor
      
      Reviewed By: igor
      
      Subscribers: igor, rven, dhruba, sdong
      
      Differential Revision: https://reviews.facebook.net/D31605
      b229f970
    • V
      Fix for bug where GeoDB accesses key after next modification of iterator · f2ddb8b4
      Venkatesh Radhakrishnan 提交于
      Summary:
      While running cross-functional tests for weak iterators, I
      encountered a bug in GeoDB. GeoDB reads a key from the database and
      tries to use it after doing a Seek. Fixing it by storing the key locally
      so that it is still visible after the Seek.
      
      Test Plan: Run geodb_test
      
      Reviewers: sdong, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D31599
      f2ddb8b4
    • T
      Ported LevelDB's fault_injection_test · d10f1de2
      Thomas Dudziak 提交于
      Summary:
      This is a port of [[ https://github.com/google/leveldb/blob/master/db/fault_injection_test.cc | LevelDB's fault_injection_test ]] to RocksDB. Unfortunately it fails with:
      
      ```
      ==== Test FaultInjectionTest.FaultTest
      db/fault_injection_test.cc:491: Corruption: no meta-nextfile entry in descriptor
      #0   ./fault_injection_test() [0x41477a] rocksdb::FaultInjectionTest::PartialCompactTestReopenWithFault(rocksdb::FaultInjectionTest::ResetMethod, int, int) /data/users/tomdzk/rocksdb/db/fault_injection_test.cc:491
      #1   ./fault_injection_test() [0x40a38a] rocksdb::_Test_FaultTest::_Run() /data/users/tomdzk/rocksdb/db/fault_injection_test.cc:517
      #2   ./fault_injection_test() [0x415bea] rocksdb::_Test_FaultTest::_RunIt() /data/users/tomdzk/rocksdb/db/fault_injection_test.cc:507
      #3   ./fault_injection_test() [0x584367] rocksdb::test::RunAllTests() /data/users/tomdzk/rocksdb/util/testharness.cc:70
      #4   /usr/local/fbcode/gcc-4.8.1-glibc-2.17/lib/libc.so.6(__libc_start_main+0x10e) [0x7f7a40857efe] ??  ??:0
      #5   ./fault_injection_test() [0x408bb8] _start ??:0
      ```
      
      so I commented out the test invocation in the source code for now (lines 514-520) so it can be merged.
      
      Test Plan: This is a new test.
      
      Reviewers: igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D31587
      d10f1de2
  2. 15 1月, 2015 16 次提交
  3. 14 1月, 2015 6 次提交
  4. 13 1月, 2015 7 次提交
  5. 11 1月, 2015 2 次提交
  6. 10 1月, 2015 4 次提交
    • I
      Fix build issues · 15d2abbe
      Igor Canadi 提交于
      15d2abbe
    • I
      Move compression functions from port/ to util/ · abb9b95f
      Igor Canadi 提交于
      Summary: We keep checksum functions in util/, there is no reason for compression to be in port/
      
      Test Plan: compiles
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D31281
      abb9b95f
    • S
      DB Stats Dump to print total stall time · 9132e52e
      sdong 提交于
      Summary:
      Add printing of stall time in DB Stats:
      
      Sample outputs:
      
      ** DB Stats **
      Uptime(secs): 53.2 total, 1.7 interval
      Cumulative writes: 625940 writes, 625939 keys, 625940 batches, 1.0 writes per batch, 0.49 GB user ingest, stall micros: 50691070
      Cumulative WAL: 625940 writes, 625939 syncs, 1.00 writes per sync, 0.49 GB written
      Interval writes: 10859 writes, 10859 keys, 10859 batches, 1.0 writes per batch, 8.7 MB user ingest, stall micros: 1692319
      Interval WAL: 10859 writes, 10859 syncs, 1.00 writes per sync, 0.01 MB written
      
      Test Plan:
      make all check
      verify printing using db_bench
      
      Reviewers: igor, yhchiang, rven, MarkCallaghan
      
      Reviewed By: MarkCallaghan
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D31239
      9132e52e
    • I
      Merge pull request #453 from fyrz/SimpleCExampleSigSegv · 93b35c29
      Igor Canadi 提交于
      Memory issue fix in c_simple_example
      93b35c29
  7. 09 1月, 2015 1 次提交
    • F
      Fixed memory issue in c_simple_example · ef390164
      fyrz 提交于
      Valgrind report prior to this fix:
      ==20829== Memcheck, a memory error detector
      ==20829== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
      ==20829== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
      ==20829== Command: ./c_simple_example
      ==20829==
      ==20829== Invalid read of size 1
      ==20829==    at 0x4C2F1C8: strcmp (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==20829==    by 0x422522: main (in /home/user/rocksgit/transfer/rocksdb-git/examples/c_simple_example)
      ==20829==  Address 0x5f60df5 is 0 bytes after a block of size 5 alloc'd
      ==20829==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==20829==    by 0x4226D5: CopyString (c.cc:498)
      ==20829==    by 0x423032: rocksdb_get (c.cc:730)
      ==20829==    by 0x4224EB: main (in /home/user/rocksgit/transfer/rocksdb-git/examples/c_simple_example)
      ==20829==
      ==20829==
      ==20829== HEAP SUMMARY:
      ==20829==     in use at exit: 77 bytes in 5 blocks
      ==20829==   total heap usage: 4,491 allocs, 4,486 frees, 839,216 bytes allocated
      ==20829==
      ==20829== LEAK SUMMARY:
      ==20829==    definitely lost: 5 bytes in 1 blocks
      ==20829==    indirectly lost: 0 bytes in 0 blocks
      ==20829==      possibly lost: 0 bytes in 0 blocks
      ==20829==    still reachable: 72 bytes in 4 blocks
      ==20829==         suppressed: 0 bytes in 0 blocks
      ==20829== Rerun with --leak-check=full to see details of leaked memory
      ==20829==
      ==20829== For counts of detected and suppressed errors, rerun with: -v
      ==20829== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
      ef390164
  8. 08 1月, 2015 1 次提交
    • I
      :%s/build_config/make_config · b89d58df
      Igor Canadi 提交于
      Summary: I'm tired of double-tab when opening build_tools/<something>. This change will make bu<tab> fully complete my path :)
      
      Test Plan: `vi bu<tab>` gives me `vi build_tools/` yay!
      
      Reviewers: yhchiang, rven, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D30639
      b89d58df