From 013251e6d966447538718fe4027c02a4808b3a77 Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Tue, 14 May 2013 13:51:44 -0400 Subject: [PATCH] Update WiredTiger statistics less frequently and fix a build script mistake preventing checking out by branch name. --- c_src/build_deps.sh | 4 ++-- src/riak_kv_wterl_backend.erl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/c_src/build_deps.sh b/c_src/build_deps.sh index 680529d..789bcea 100755 --- a/c_src/build_deps.sh +++ b/c_src/build_deps.sh @@ -35,12 +35,12 @@ get_wt () if [ -d $BASEDIR/$WT_DIR/.git ]; then (cd $BASEDIR/$WT_DIR && git pull -u) || exit 1 else - if [ "X$WT_VSN" == "X" ]; then + if [ "X$WT_VSN" != "X" ]; then git clone ${WT_REPO} && \ (cd $BASEDIR/wiredtiger && git checkout $WT_VSN || exit 1) else git clone -b ${WT_BRANCH} ${WT_REPO} && \ - (cd $BASEDIR/wiredtiger && git checkout -b $WT_BRANCH origin/$WT_BRANCH || exit 1) + (cd $BASEDIR/wiredtiger && git checkout $WT_BRANCH origin/$WT_BRANCH || exit 1) fi mv wiredtiger $WT_DIR || exit 1 fi diff --git a/src/riak_kv_wterl_backend.erl b/src/riak_kv_wterl_backend.erl index cbdeccc..4d0448d 100644 --- a/src/riak_kv_wterl_backend.erl +++ b/src/riak_kv_wterl_backend.erl @@ -415,7 +415,7 @@ establish_connection(Config, Type) -> wterl:config_value(transactional, Config, true), wterl:config_value(session_max, Config, max_sessions(Config)), wterl:config_value(cache_size, Config, size_cache(RequestedCacheSize)), - wterl:config_value(statistics_log, Config, [{wait, 30}]), % sec + wterl:config_value(statistics_log, Config, [{wait, 300}]), % sec wterl:config_value(verbose, Config, [ "salvage", "verify" % Note: for some unknown reason, if you add these additional % verbose flags Erlang SEGV's "size_object: bad tag for 0x80"