提交 bfc34214 编写于 作者: W Wu Tao 提交者: QinZuoyan

scripts: build rocksdb with RelWithDebInfo (#355)

上级 7ff7cd32
......@@ -92,3 +92,5 @@ LOG
.shell-history
PACKAGE
scripts/py_utils/*.pyc
cmake-build-debug
......@@ -226,7 +226,7 @@ function run_build()
if [ "$BUILD_TYPE" == "debug" ]
then
echo "BUILD_TYPE=debug"
CMAKE_OPTIONS="$CMAKE_OPTIONS -DCMAKE_BUILD_TYPE=Debug"
CMAKE_OPTIONS="$CMAKE_OPTIONS -DCMAKE_BUILD_TYPE=RelWithDebInfo"
else
echo "BUILD_TYPE=release"
fi
......
......@@ -112,7 +112,7 @@ def set_write_throttling_if_needed(cluster, table, new_throttle):
def set_app_envs_if_needed(cluster, table, env_name, new_env_value):
py_utils.echo("New value of {}={}".format(env_name, new_env_value))
envs = cluster.get_app_envs(table)
if envs is not None:
if envs is not None and envs.get(env_name) is not None:
old_env_value = envs.get(env_name).encode('utf-8')
if old_env_value is not None:
py_utils.echo("Old value of {}={}".format(env_name, old_env_value))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册