[packages/rocksdb] - updated to 4.9 - added jemalloc patch

qboosh qboosh at pld-linux.org
Sat Sep 17 06:45:13 CEST 2016


commit 2592c03f4fcd02efbfac10382cf32e5a350a9554
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Sep 17 06:46:43 2016 +0200

    - updated to 4.9
    - added jemalloc patch

 rocksdb-jemalloc.patch | 11 +++++++++++
 rocksdb.spec           |  8 +++++---
 2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/rocksdb.spec b/rocksdb.spec
index cfc4d3e..21a3ae7 100644
--- a/rocksdb.spec
+++ b/rocksdb.spec
@@ -7,16 +7,17 @@
 Summary:	RocksDB: A Persistent Key-Value Store for Flash and RAM Storage
 Summary(pl.UTF-8):	RocksDB - trwała baza danych klucz-wartość dla pamięci Flash i RAM
 Name:		rocksdb
-Version:	4.4.1
+Version:	4.9
 Release:	1
 License:	BSD
 Group:		Libraries
 #Source0Download: https://github.com/facebook/rocksdb/releases
 Source0:	https://github.com/facebook/rocksdb/archive/%{name}-%{version}.tar.gz
-# Source0-md5:	ad38c27c09cea873296bfba68594335c
+# Source0-md5:	e23ab7b76faaa1fc4c96b86732b16448
 Patch0:		%{name}-libdir.patch
 Patch1:		make-programs.patch
 Patch2:		%{name}-numa.patch
+Patch3:		%{name}-jemalloc.patch
 URL:		http://rocksdb.org/
 BuildRequires:	bzip2-devel
 BuildRequires:	gflags-devel
@@ -72,6 +73,7 @@ Statyczna biblioteka RocksDB.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %ifarch i386 i486
@@ -107,7 +109,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc HISTORY.md LICENSE PATENTS README.md ROCKSDB_LITE.md
 %attr(755,root,root) %{_libdir}/librocksdb.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/librocksdb.so.4.4
+%attr(755,root,root) %ghost %{_libdir}/librocksdb.so.4.9
 
 %files devel
 %defattr(644,root,root,755)
diff --git a/rocksdb-jemalloc.patch b/rocksdb-jemalloc.patch
new file mode 100644
index 0000000..bed1f75
--- /dev/null
+++ b/rocksdb-jemalloc.patch
@@ -0,0 +1,11 @@
+--- rocksdb-rocksdb-4.9/db/db_impl.cc.orig	2016-06-10 02:53:03.000000000 +0200
++++ rocksdb-rocksdb-4.9/db/db_impl.cc	2016-09-16 21:57:34.811440413 +0200
+@@ -580,7 +580,7 @@
+   std::unique_ptr<char> buf{new char[kMallocStatusLen + 1]};
+   mstat.cur = buf.get();
+   mstat.end = buf.get() + kMallocStatusLen;
+-  malloc_stats_print(GetJemallocStatus, &mstat, "");
++  je_malloc_stats_print(GetJemallocStatus, &mstat, "");
+   stats->append(buf.get());
+ #endif  // ROCKSDB_JEMALLOC
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rocksdb.git/commitdiff/2592c03f4fcd02efbfac10382cf32e5a350a9554



More information about the pld-cvs-commit mailing list