Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit992df96

Browse files
committed
Make fallback implementation of pg_memory_barrier() work in 9.2 and 9.3.
Back-patch 9.4-era commit44cd47c into 9.2 and 9.3. As withmy back-patches of yesterday, this was not seen as necessary at the timebecause we didn't expect barrier.h to need to work before 9.4, butcommit37de8de invalidated that theory.Per an attempt to run gaur and pademelon over old branches they'venot been run on since ~2013.
1 parent9b2dc08 commit992df96

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/backend/main/main.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242

4343
#include"bootstrap/bootstrap.h"
4444
#include"postmaster/postmaster.h"
45+
#include"storage/barrier.h"
46+
#include"storage/spin.h"
4547
#include"tcop/tcopprot.h"
4648
#include"utils/help_config.h"
4749
#include"utils/memutils.h"
@@ -311,6 +313,12 @@ startup_hacks(const char *progname)
311313

312314
}
313315
#endif/* WIN32 */
316+
317+
/*
318+
* Initialize dummy_spinlock, in case we are on a platform where we have
319+
* to use the fallback implementation of pg_memory_barrier().
320+
*/
321+
SpinLockInit(&dummy_spinlock);
314322
}
315323

316324

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp