#!/bin/sh

set -o nounset
set -o errexit

top_srcdir=$(cd $(dirname $0)/../..; pwd)

. ${top_srcdir}/test/scripts/testutils.sh

mv mergedb mergedb-down
mv mergedb-secondary mergedb
init_log
cp mergedb-down/sth mergedb/    # After init_log.
mkdir mergedb-secondary
touch mergedb-secondary/logorder
printf 0 > mergedb-secondary/verifiedsize