Skip to content

Commit 38d0147

Browse files
committed
Fix recompression_spin_lock_test for macos
Force extension load to prevent race condition
1 parent 7d393ec commit 38d0147

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tsl/test/t/005_recompression_spin_lock_test.pl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@
111111
# We use session 3 to set up debug waitpoints
112112
# Begin txns in all sessions
113113

114-
$s1->query_safe("BEGIN;");
115-
$s2->query_safe("BEGIN;");
116-
$s3->query_safe("BEGIN;");
114+
# use SELECT to trigger extension load
115+
$s1->query_safe("BEGIN; SELECT;");
116+
$s2->query_safe("BEGIN; SELECT;");
117+
$s3->query_safe("BEGIN; SELECT;");
117118

118119
# We enable the debug_waitpoint after the latch and release it after s2 aborts
119120
# This allows s1 to successfully acquire the lock the second time around

0 commit comments

Comments
 (0)