-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.8.1 downgrade rocksdb to 3.4 since 3.5 have some critical bugs
- Loading branch information
Showing
14 changed files
with
87 additions
and
30 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- util/rate_limiter.cc 2014-09-18 19:43:00.509681500 +0800 | ||
+++ util/rate_limiter.cc 2014-09-18 19:36:31.071741600 +0800 | ||
@@ -60,7 +60,7 @@ | ||
} | ||
|
||
void GenericRateLimiter::Request(int64_t bytes, const Env::IOPriority pri) { | ||
- assert(bytes < refill_bytes_per_period_); | ||
+ assert(bytes <= refill_bytes_per_period_); | ||
|
||
MutexLock g(&request_mutex_); | ||
if (stop_) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- configure.ac 2012-09-30 10:53:32.000000000 -0700 | ||
+++ configure.ac 2014-07-08 18:02:20.285143803 -0700 | ||
@@ -41,9 +41,12 @@ | ||
CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS -DZKSERVER_CMD=\"\\\"${base_dir}/src/c/tests/zkServer.sh\\\"\"" | ||
else | ||
CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS -DZKSERVER_CMD=\"\\\"./tests/zkServer.sh\\\"\"" | ||
-AC_CHECK_FILES([generated/zookeeper.jute.c generated/zookeeper.jute.h],[], | ||
- [AC_MSG_ERROR([jute files are missing! Please run "ant compile_jute" while in the zookeeper top level directory.]) | ||
-]) | ||
+if test -f "generated/zookeeper.jute.c"; then :; else | ||
+ AC_MSG_ERROR([jute files are missing! Please run "ant compile_jute" while in the zookeeper top level directory.]) | ||
+fi | ||
+if test -f "generated/zookeeper.jute.h"; then :; else | ||
+ AC_MSG_ERROR([jute files are missing! Please run "ant compile_jute" while in the zookeeper top level directory.]) | ||
+fi | ||
fi | ||
AC_SUBST(CPPUNIT_CFLAGS) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- mt_adaptor.c 2012-09-30 10:53:32.000000000 -0700 | ||
+++ mt_adaptor.c 2014-07-01 16:05:07.387967525 -0700 | ||
@@ -482,6 +482,9 @@ | ||
|
||
int32_t fetch_and_add(volatile int32_t* operand, int incr) | ||
{ | ||
+#if defined(__GNUC__) | ||
+ return __sync_fetch_and_add(operand, incr); | ||
+#else | ||
#ifndef WIN32 | ||
int32_t result; | ||
asm __volatile__( | ||
@@ -503,6 +506,7 @@ | ||
} | ||
return result; | ||
#endif | ||
+#endif | ||
} | ||
|
||
// make sure the static xid is initialized before any threads started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters