1. 26 8月, 2015 1 次提交
  2. 18 7月, 2015 2 次提交
    • S
      Move rate_limiter, write buffering, most perf context instrumentation and most... · 6e9fbeb2
      sdong 提交于
      Move rate_limiter, write buffering, most perf context instrumentation and most random kill out of Env
      
      Summary: We want to keep Env a think layer for better portability. Less platform dependent codes should be moved out of Env. In this patch, I create a wrapper of file readers and writers, and put rate limiting, write buffering, as well as most perf context instrumentation and random kill out of Env. It will make it easier to maintain multiple Env in the future.
      
      Test Plan: Run all existing unit tests.
      
      Reviewers: anthony, kradhakrishnan, IslamAbdelRahman, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D42321
      6e9fbeb2
    • S
      Cleaning up CYGWIN define of fread_unlocked to port · 5ec829bc
      sdong 提交于
      Summary: CYGWIN avoided fread_unlocked in a wrong way. Fix it to the standard way.
      
      Test Plan: Run tests
      
      Reviewers: anthony, kradhakrishnan, IslamAbdelRahman, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D42549
      5ec829bc
  3. 14 7月, 2015 1 次提交
    • S
      "make format" against last 10 commits · f9728640
      sdong 提交于
      Summary: This helps Windows port to format their changes, as discussed. Might have formatted some other codes too becasue last 10 commits include more.
      
      Test Plan: Build it.
      
      Reviewers: anthony, IslamAbdelRahman, kradhakrishnan, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D41961
      f9728640
  4. 12 7月, 2015 1 次提交
  5. 08 7月, 2015 1 次提交
  6. 02 7月, 2015 1 次提交
    • D
      Windows Port from Microsoft · 18285c1e
      Dmitri Smirnov 提交于
       Summary: Make RocksDb build and run on Windows to be functionally
       complete and performant. All existing test cases run with no
       regressions. Performance numbers are in the pull-request.
      
       Test plan: make all of the existing unit tests pass, obtain perf numbers.
      
       Co-authored-by: Praveen Rao praveensinghrao@outlook.com
       Co-authored-by: Sherlock Huang baihan.huang@gmail.com
       Co-authored-by: Alex Zinoviev alexander.zinoviev@me.com
       Co-authored-by: Dmitri Smirnov dmitrism@microsoft.com
      18285c1e
  7. 27 2月, 2015 1 次提交
  8. 24 2月, 2015 1 次提交
  9. 10 1月, 2015 1 次提交
  10. 12 11月, 2014 1 次提交
    • I
      Turn on -Wshorten-64-to-32 and fix all the errors · 767777c2
      Igor Canadi 提交于
      Summary:
      We need to turn on -Wshorten-64-to-32 for mobile. See D1671432 (internal phabricator) for details.
      
      This diff turns on the warning flag and fixes all the errors. There were also some interesting errors that I might call bugs, especially in plain table. Going forward, I think it makes sense to have this flag turned on and be very very careful when converting 64-bit to 32-bit variables.
      
      Test Plan: compiles
      
      Reviewers: ljin, rven, yhchiang, sdong
      
      Reviewed By: yhchiang
      
      Subscribers: bobbaldwin, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D28689
      767777c2
  11. 01 11月, 2014 1 次提交
    • I
      Turn on -Wshadow · 9f7fc3ac
      Igor Canadi 提交于
      Summary:
      ...and fix all the errors :)
      
      Jim suggested turning on -Wshadow because it helped him fix number of critical bugs in fbcode. I think it's a good idea to be -Wshadow clean.
      
      Test Plan: compiles
      
      Reviewers: yhchiang, rven, sdong, ljin
      
      Reviewed By: ljin
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D27711
      9f7fc3ac
  12. 28 10月, 2014 1 次提交
    • I
      Deprecate AtomicPointer · 48842ab3
      Igor Canadi 提交于
      Summary: RocksDB already depends on C++11, so we might as well all the goodness that C++11 provides. This means that we don't need AtomicPointer anymore. The less things in port/, the easier it will be to port to other platforms.
      
      Test Plan: make check + careful visual review verifying that NoBarried got memory_order_relaxed, while Acquire/Release methods got memory_order_acquire and memory_order_release
      
      Reviewers: rven, yhchiang, ljin, sdong
      
      Reviewed By: ljin
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D27543
      48842ab3
  13. 04 7月, 2014 1 次提交
  14. 17 6月, 2014 1 次提交
    • B
      Add separate Read/WriteUnlock methods in MutexRW. · 2d02ec65
      Bradley Grainger 提交于
      Some platforms, particularly Windows, do not have a single method that can
      release both a held reader lock and a held writer lock; instead, a
      separate method (ReleaseSRWLockShared or ReleaseSRWLockExclusive) must be
      called in each case.
      
      This may also be necessary to back MutexRW with a shared_mutex in C++14;
      the current language proposal includes both an unlock() and a
      shared_unlock() method.
      2d02ec65
  15. 13 6月, 2014 1 次提交
  16. 06 5月, 2014 1 次提交
    • I
      Make rocksdb work with all versions of lz4 · 9e7d00d9
      Igor Canadi 提交于
      Summary:
      There are some projects in fbcode that define lz4 dependency on r108. We, however, defined dependency on r117. That produced some interesting issues and our build system was not happy.
      
      This diff makes rocksdb work with both r108 and r117. Hopefully this will fix our problems.
      
      Test Plan: compiled rocksdb with both r108 and r117 lz4
      
      Reviewers: dhruba, sdong, haobo
      
      Reviewed By: sdong
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D18465
      9e7d00d9
  17. 23 4月, 2014 2 次提交
  18. 09 4月, 2014 1 次提交
    • L
      db_bench cleanup · 0c1126d4
      Lei Jin 提交于
      Summary:
      clean up the db_bench a little bit. also avoid allocating memory for key
      in the loop
      
      Test Plan:
      I verified a run with filluniquerandom & readrandom. Iterator seek will be used lot
      to measure performance. Will fix whatever comes up
      
      Reviewers: haobo, igor, yhchiang
      
      Reviewed By: igor
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17559
      0c1126d4
  19. 29 3月, 2014 1 次提交
  20. 27 3月, 2014 1 次提交
    • I
      AssertHeld() should do things · 954679bb
      Igor Canadi 提交于
      Summary:
      AssertHeld() was a no-op before. Now it does things.
      
      Also, this change caught a bad bug in SuperVersion::Init(). The method is calling db->mutex.AssertHeld(), but db variable is not initialized yet! I also fixed that issue.
      
      Test Plan: make check
      
      Reviewers: dhruba, haobo, ljin, sdong, yhchiang
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17193
      954679bb
  21. 09 2月, 2014 1 次提交
  22. 07 2月, 2014 1 次提交
  23. 06 2月, 2014 1 次提交
  24. 19 11月, 2013 1 次提交
  25. 17 10月, 2013 1 次提交
  26. 05 10月, 2013 1 次提交
  27. 24 8月, 2013 1 次提交
  28. 19 6月, 2013 1 次提交
    • J
      Fix Zlib_Compress and Zlib_Uncompress · 09de7a3b
      Jim Paton 提交于
      Summary:
      Zlib_{Compress,Uncompress} did not handle very small input buffers properly. In addition, they did not call inflate/deflate until Z_STREAM_END was returned; it was possible for them to exit when only Z_OK had returned.
      
      This diff also fixes a bunch of lint errors.
      
      Test Plan: Run make check
      
      Reviewers: dhruba, sheki, haobo
      
      Reviewed By: dhruba
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D11301
      09de7a3b
  29. 02 6月, 2013 1 次提交
    • H
      [RocksDB] Introduce Fast Mutex option · d897d33b
      Haobo Xu 提交于
      Summary:
      This diff adds an option to specify whether PTHREAD_MUTEX_ADAPTIVE_NP will be enabled for the rocksdb single big kernel lock. db_bench also have this option now.
      Quickly tested 8 thread cpu bound 100 byte random read.
      No fast mutex: ~750k/s ops
      With fast mutex: ~880k/s ops
      
      Test Plan: make check; db_bench; db_stress
      
      Reviewers: dhruba
      
      CC: MarkCallaghan, leveldb
      
      Differential Revision: https://reviews.facebook.net/D11031
      d897d33b
  30. 03 11月, 2012 1 次提交
  31. 20 10月, 2012 1 次提交
    • D
      Do not enable checksums for zlib compression. · 507f5aac
      Dhruba Borthakur 提交于
      Summary:
      Leveldb code already calculates checksums for each block. There
      is no need to generate checksums inside zlib. This patch switches-off checksum generation/checking in zlib library.
      
      (The Inno support for zlib uses windowsBits=14 as well.)
      
      pfabricator marks this file as binary. But here is the diff
      
      diff --git a/port/port_posix.h b/port/port_posix.h
      index 86a0927..db4e0b8 100644
      --- a/port/port_posix.h
      +++ b/port/port_posix.h
      @@ -163,7 +163,7 @@ inline bool Snappy_Uncompress(const char* input, size_t length,
       }
      
       inline bool Zlib_Compress(const char* input, size_t length,
      -    ::std::string* output, int windowBits = 15, int level = -1,
      +    ::std::string* output, int windowBits = -14, int level = -1,
            int strategy = 0) {
       #ifdef ZLIB
         // The memLevel parameter specifies how much memory should be allocated for
      @@ -223,7 +223,7 @@ inline bool Zlib_Compress(const char* input, size_t length,
       }
      
       inline char* Zlib_Uncompress(const char* input_data, size_t input_length,
      -    int* decompress_size, int windowBits = 15) {
      +    int* decompress_size, int windowBits = -14) {
       #ifdef ZLIB
         z_stream _stream;
         memset(&_stream, 0, sizeof(z_stream));
      
      Test Plan: run db_bench with zlib compression.
      
      Reviewers: heyongqiang, MarkCallaghan
      
      Reviewed By: heyongqiang
      
      Differential Revision: https://reviews.facebook.net/D6105
      507f5aac
  32. 02 10月, 2012 1 次提交
  33. 07 9月, 2012 1 次提交
    • H
      put log in a seperate dir · 0f43aa47
      heyongqiang 提交于
      Summary: added a new option db_log_dir, which points the log dir. Inside that dir, in order to make log names unique, the log file name is prefixed with the leveldb data dir absolute path.
      
      Test Plan: db_test
      
      Reviewers: dhruba
      
      Reviewed By: dhruba
      
      Differential Revision: https://reviews.facebook.net/D5205
      0f43aa47
  34. 05 9月, 2012 1 次提交
  35. 29 8月, 2012 1 次提交
    • H
      merge 1.5 · a4f9b8b4
      heyongqiang 提交于
      Summary:
      
      as subject
      
      Test Plan:
      
      db_test table_test
      
      Reviewers: dhruba
      a4f9b8b4
  36. 03 7月, 2012 1 次提交
  37. 30 6月, 2012 1 次提交
  38. 29 6月, 2012 1 次提交