mirror of
https://github.com/zebrajr/postgres.git
synced 2025-12-07 00:20:24 +01:00
Make fallback implementation of pg_memory_barrier() work in 9.2 and 9.3.
Back-patch 9.4-era commit44cd47c1d4into 9.2 and 9.3. As with my back-patches of yesterday, this was not seen as necessary at the time because we didn't expect barrier.h to need to work before 9.4, but commit37de8de9e3invalidated that theory. Per an attempt to run gaur and pademelon over old branches they've not been run on since ~2013.
This commit is contained in:
parent
56aa0f142d
commit
9008922bf7
|
|
@ -42,6 +42,8 @@
|
|||
|
||||
#include "bootstrap/bootstrap.h"
|
||||
#include "postmaster/postmaster.h"
|
||||
#include "storage/barrier.h"
|
||||
#include "storage/spin.h"
|
||||
#include "tcop/tcopprot.h"
|
||||
#include "utils/help_config.h"
|
||||
#include "utils/memutils.h"
|
||||
|
|
@ -313,6 +315,12 @@ startup_hacks(const char *progname)
|
|||
|
||||
}
|
||||
#endif /* WIN32 */
|
||||
|
||||
/*
|
||||
* Initialize dummy_spinlock, in case we are on a platform where we have
|
||||
* to use the fallback implementation of pg_memory_barrier().
|
||||
*/
|
||||
SpinLockInit(&dummy_spinlock);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user