git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e7629d)
Mark a few logical decoding related variables with PGDLLIMPORT.
2020年8月15日 03:04:48 +0000 (08:34 +0530)
2020年8月15日 03:04:48 +0000 (08:34 +0530)
Commit 7259736a6e added two variables CheckXidAlive and bsysscan to detect
concurrent aborts and used these in inline functions that are part of the
API that can be used by extensions. So it is better to mark them with
PGDLLIMPORT.

Reported-by: Thomas Munro
Discussion: https://postgr.es/m/CA+hUKGJ7+HYupd=Pz9+QrXa-C_YnbC4rAYu8V+=OKg=UgdzMeg@mail.gmail.com


diff --git a/src/include/access/xact.h b/src/include/access/xact.h
index c18554bae2c251ab21984a2d43361636ad5706c5..c59de9bebaf808c0d51dd74d1eb83ffd9225100e 100644 (file)
--- a/src/include/access/xact.h
+++ b/src/include/access/xact.h
@@ -82,8 +82,8 @@ typedef enum
extern int synchronous_commit;
/* used during logical streaming of a transaction */
-extern TransactionId CheckXidAlive;
-extern bool bsysscan;
+extern PGDLLIMPORT TransactionId CheckXidAlive;
+extern PGDLLIMPORT bool bsysscan;
/*
* Miscellaneous flag bits to record events which occur on the top level
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /