Skip to content

Commit 4097f8d

Browse files
committed
All commits contain generation
Signed-off-by: Mark Hannum <mhannum72@gmail.com>
1 parent d1af879 commit 4097f8d

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

tests/nogensc.test/runit

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,10 @@ $CDB2SQL_EXE $CDB2_OPTIONS $DBNAME default "create table t1(a int)"
77

88
g=$($CDB2SQL_EXE --tabs $CDB2_OPTIONS $DBNAME default "select generation from comdb2_transaction_logs where rectype=2015 or rectype=2150")
99

10-
if [[ "$DBNAME" == *"usegen"* ]]; then
11-
if [[ "$g" == "NULL" ]]; then
12-
echo "Committed-gen database should have non-NULL for generation"
13-
exit 1
14-
fi
15-
else
16-
if [[ "$g" != "NULL" ]]; then
17-
echo "No-gen database should have NULL for generation in regop_rowlocks record"
18-
exit 1
19-
fi
10+
# We will always emit commit-gen records
11+
if [[ "$g" == "NULL" ]]; then
12+
echo "Committed-gen database should have non-NULL for generation"
13+
exit 1
2014
fi
2115

2216
echo "Success"

tests/nogensc.test/usegen.testopts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)