File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ ISOLATIONCHECKS = corner_cases
30
30
31
31
check : isolationcheck
32
32
33
- installcheck : isolationcheck
33
+ installcheck : submake-isolation
34
+ $(MKDIR_P ) isolation_output
35
+ $(pg_isolation_regress_installcheck ) \
36
+ --outputdir=isolation_output \
37
+ $(ISOLATIONCHECKS )
34
38
35
39
isolationcheck : | submake-isolation temp-install
36
40
$(MKDIR_P ) isolation_output
Original file line number Diff line number Diff line change @@ -541,14 +541,18 @@ pg_query_state(PG_FUNCTION_ARGS)
541
541
break ;
542
542
}
543
543
}
544
- pg_atomic_write_u32 (& counterpart_userid -> n_peers , 1 );
545
- params -> reqid = ++ reqid ;
546
- pg_write_barrier ();
547
544
548
545
counterpart_user_id = GetRemoteBackendUserId (proc );
549
546
if (!(superuser () || GetUserId () == counterpart_user_id ))
547
+ {
548
+ UnlockShmem (& tag );
550
549
ereport (ERROR , (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
551
550
errmsg ("permission denied" )));
551
+ }
552
+
553
+ pg_atomic_write_u32 (& counterpart_userid -> n_peers , 1 );
554
+ params -> reqid = ++ reqid ;
555
+ pg_write_barrier ();
552
556
553
557
bg_worker_procs = GetRemoteBackendWorkers (proc );
554
558
You can’t perform that action at this time.
0 commit comments