From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-642739-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id EEA8F138247
	for <garchives@archives.gentoo.org>; Fri, 22 Nov 2013 17:52:36 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id DF40DE09C5;
	Fri, 22 Nov 2013 17:52:35 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 73F7CE09C5
	for <gentoo-commits@lists.gentoo.org>; Fri, 22 Nov 2013 17:52:35 +0000 (UTC)
Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163])
	(using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 6001D33EEC6
	for <gentoo-commits@lists.gentoo.org>; Fri, 22 Nov 2013 17:52:33 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by hornbill.gentoo.org (Postfix) with ESMTP id BD6D0E5459
	for <gentoo-commits@lists.gentoo.org>; Fri, 22 Nov 2013 17:52:30 +0000 (UTC)
From: "Brian Evans" <grknight@lavabit.com>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" <grknight@lavabit.com>
Message-ID: <1385142699.0dfcd2b37c6295a8d667a7b40024fe9283c9bc1b.grknight.pub@gentoo>
Subject: [gentoo-commits] proj/mysql:master commit in: eclass/
X-VCS-Repository: proj/mysql
X-VCS-Files: eclass/mysql-v2.eclass
X-VCS-Directories: eclass/
X-VCS-Committer: grknight.pub
X-VCS-Committer-Name: Brian Evans
X-VCS-Revision: 0dfcd2b37c6295a8d667a7b40024fe9283c9bc1b
X-VCS-Branch: master
Date: Fri, 22 Nov 2013 17:52:30 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 2d81f2d9-2792-45aa-897b-e32a75b004f7
X-Archives-Hash: 3657e113425bec12f4df2ce22c4a673a

commit:     0dfcd2b37c6295a8d667a7b40024fe9283c9bc1b
Author:     Brian Evans <grknight <AT> tuffmail <DOT> com>
AuthorDate: Fri Nov 22 17:51:39 2013 +0000
Commit:     Brian Evans <grknight <AT> lavabit <DOT> com>
CommitDate: Fri Nov 22 17:51:39 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=0dfcd2b3

[eclass] Force jemalloc with tokudb for performance reasons

---
 eclass/mysql-v2.eclass | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eclass/mysql-v2.eclass b/eclass/mysql-v2.eclass
index 95266d0..3fc297d 100644
--- a/eclass/mysql-v2.eclass
+++ b/eclass/mysql-v2.eclass
@@ -218,9 +218,11 @@ if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]]; then
 	mysql_version_is_at_least "5.2" && IUSE="${IUSE} oqgraph"
 	mysql_version_is_at_least "5.2.5" && IUSE="${IUSE} sphinx"
 	mysql_version_is_at_least "5.2.10" && IUSE="${IUSE} pam"
+	# 5.5.33 and 10.0.5 add TokuDB. Authors strongly recommend jemalloc or perfomance suffers
 	mysql_version_is_at_least "10.0.5" && IUSE="${IUSE} tokudb odbc xml" && \
-		REQUIRED_USE="odbc? ( extraengine ) xml? ( extraengine )"
-	mysql_check_version_range "5.5.33 to 5.5.99" && IUSE="${IUSE} tokudb"
+		REQUIRED_USE="odbc? ( extraengine ) xml? ( extraengine ) tokudb? ( jemalloc )"
+	mysql_check_version_range "5.5.33 to 5.5.99" && IUSE="${IUSE} tokudb" && \
+		REQUIRED_USE="tokudb? ( jemalloc )"
 fi
 
 if mysql_version_is_at_least "5.5"; then