From eac0bf4e9784f932360415c969f66d298519e21f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 19 Sep 2018 17:24:09 -0500 Subject: [PATCH] ceph-dev-[new-]setup/build/build: -DWITH_CEPH_DEBUG_MUTEX=ON for notcmalloc Enable the debug ceph::mutex in the notcmalloc build. The normal build will use the defaults, which (if it's a Release or RelWithDebug build) will not include extra debug checks. Signed-off-by: Sage Weil --- ceph-dev-new-setup/build/build | 2 +- ceph-dev-setup/build/build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ceph-dev-new-setup/build/build b/ceph-dev-new-setup/build/build index d8228912..7ed493a4 100644 --- a/ceph-dev-new-setup/build/build +++ b/ceph-dev-new-setup/build/build @@ -59,7 +59,7 @@ then AUTOCONF_FLAVOR_FLAGS="$AUTOCONF_FLAVOR_FLAGS --without-tcmalloc" CEPH_EXTRA_CONFIGURE_ARGS="--without-tcmalloc" CEPH_EXTRA_RPMBUILD_ARGS="--without tcmalloc" - CEPH_EXTRA_CMAKE_ARGS="$CEPH_EXTRA_CMAKE_ARGS -DALLOCATOR=libc" + CEPH_EXTRA_CMAKE_ARGS="$CEPH_EXTRA_CMAKE_ARGS -DALLOCATOR=libc -DWITH_CEPH_DEBUG_MUTEX=ON" else AUTOCONF_FLAVOR_FLAGS="$AUTOCONF_FLAVOR_FLAGS --with-tcmalloc" CEPH_EXTRA_CONFIGURE_ARGS="--with-tcmalloc" diff --git a/ceph-dev-setup/build/build b/ceph-dev-setup/build/build index 37b06b69..74a473c1 100644 --- a/ceph-dev-setup/build/build +++ b/ceph-dev-setup/build/build @@ -54,7 +54,7 @@ then AUTOCONF_FLAVOR_FLAGS="$AUTOCONF_FLAVOR_FLAGS --without-tcmalloc" CEPH_EXTRA_CONFIGURE_ARGS="--without-tcmalloc" CEPH_EXTRA_RPMBUILD_ARGS="--without tcmalloc" - CEPH_EXTRA_CMAKE_ARGS="$CEPH_EXTRA_CMAKE_ARGS -DALLOCATOR=libc" + CEPH_EXTRA_CMAKE_ARGS="$CEPH_EXTRA_CMAKE_ARGS -DALLOCATOR=libc -DWITH_CEPH_DEBUG_MUTEX=ON" else AUTOCONF_FLAVOR_FLAGS="$AUTOCONF_FLAVOR_FLAGS --with-tcmalloc" CEPH_EXTRA_CONFIGURE_ARGS="--with-tcmalloc" -- 2.39.5