-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regop-rowlocks logic in txn-log systable
Signed-off-by: Mark Hannum <[email protected]>
- Loading branch information
1 parent
b6a0cf8
commit 56eaf05
Showing
5 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ifeq ($(TESTSROOTDIR),) | ||
include ../testcase.mk | ||
else | ||
include $(TESTSROOTDIR)/testcase.mk | ||
endif | ||
|
||
ifeq ($(TEST_TIMEOUT),) | ||
export TEST_TIMEOUT=10m | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nowatch | ||
logmsg level info | ||
berkattr elect_highest_committed_gen 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
bash -n "$0" | exit 1 | ||
|
||
export debug=1 | ||
|
||
$CDB2SQL_EXE $CDB2_OPTIONS $DBNAME default "create table t1(a int)" | ||
|
||
g=$($CDB2SQL_EXE --tabs $CDB2_OPTIONS $DBNAME default "select generation from comdb2_transaction_logs where rectype=2015") | ||
|
||
if [[ "$DBNAME" == *"usegen"* ]]; then | ||
if [[ "$g" == "NULL" ]]; then | ||
echo "Committed-gen database should have non-NULL for generation" | ||
exit 1 | ||
fi | ||
else | ||
if [[ "$g" != "NULL" ]]; then | ||
echo "No-gen database should have NULL for generation in regop_rowlocks record" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
echo "Success" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
berkattr elect_highest_committed_gen 1 |