summaryrefslogtreecommitdiff
path: root/storage/bdb/test/scr022/chk.rr
blob: df23031529977a6d9262195527e4885c9f7f7205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -
#
# $Id: chk.rr,v 1.1 2002/04/19 15:13:05 bostic Exp $

d=../..

t1=__1

# Check for DB_RUNRECOVERY being specified instead of a call to db_panic.
egrep DB_RUNRECOVERY $d/*/*.c |
    sed -e '/common\/db_err.c:/d' \
        -e '/libdb_java\/java_util.c:/d' \
	-e '/db_dispatch.c:.*if (ret == DB_RUNRECOVERY/d' \
	-e '/txn.c:.* \* DB_RUNRECOVERY and we need to/d' \
	-e '/__db_panic(.*, DB_RUNRECOVERY)/d' > $t1
[ -s $t1 ] && {
	echo "DB_RUNRECOVERY used; should be a call to db_panic."
	cat $t1
	exit 1
}

exit 0