Skip to content

Commit

Permalink
nebd: fix jemalloc dependecy and shared library path
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-hanqing authored and xu-chaojie committed Jan 29, 2021
1 parent c674697 commit d863271
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions curve-ansible/roles/install_package/templates/nebd-daemon.j2
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ function start() {
exit 1
fi

jemallocpath={{ jemalloc_path }}
# 检查jemalloc库文件
if [ ! -f ${jemallocpath} ]
jemallocpath=`find /usr/ -name "libjemalloc.so*" -print -quit`
if [ "${jemallocpath}" = "" ]
then
echo "Not found jemalloc library, Path is ${jemallocpath}"
echo "Not found jemalloc library in /usr/"
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion nebd/nebd-package/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: nebd
Section:
Priority: optional
Depends: libunwind8, libjemalloc1(= 3.6.0-9.1)
Depends: libunwind8, libjemalloc1(= 3.6.0-9.1) | libjemalloc2(>= 5.1.0-3)
Suggests:
Architecture:amd64
Installed-Size:
Expand Down
6 changes: 3 additions & 3 deletions nebd/nebd-package/usr/bin/nebd-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ function start() {
exit 1
fi

jemallocpath=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1
# 检查jemalloc库文件
if [ ! -f ${jemallocpath} ]
jemallocpath=`find /usr/ -name "libjemalloc.so*" -print -quit`
if [ "${jemallocpath}" = "" ]
then
echo "Not found jemalloc library, Path is ${jemallocpath}"
echo "Not found jemalloc library in /usr/"
exit 1
fi

Expand Down

0 comments on commit d863271

Please sign in to comment.