]> granicus.if.org Git - postgresql/commitdiff
Remove barrier.h
authorRobert Haas <rhaas@postgresql.org>
Wed, 23 Nov 2016 00:57:45 +0000 (19:57 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 23 Nov 2016 01:28:24 +0000 (20:28 -0500)
A new thing also called a "barrier" is proposed, but whether we decide
to take that patch or not, this file seems to have outlived its
usefulness.

Thomas Munro

src/backend/access/transam/xlog.c
src/backend/main/main.c
src/backend/postmaster/bgworker.c
src/backend/storage/ipc/latch.c
src/backend/storage/ipc/shm_toc.c
src/backend/storage/lmgr/s_lock.c
src/include/pgstat.h
src/include/storage/barrier.h [deleted file]

index 6cec02797a362a9adfdd57fc9eaeb6116ae86cd8..ce4f1fc29896d0e6f2e42e5d609d22dac00f50d6 100644 (file)
@@ -41,6 +41,7 @@
 #include "commands/tablespace.h"
 #include "miscadmin.h"
 #include "pgstat.h"
+#include "port/atomics.h"
 #include "postmaster/bgwriter.h"
 #include "postmaster/walwriter.h"
 #include "postmaster/startup.h"
@@ -51,7 +52,6 @@
 #include "replication/snapbuild.h"
 #include "replication/walreceiver.h"
 #include "replication/walsender.h"
-#include "storage/barrier.h"
 #include "storage/bufmgr.h"
 #include "storage/fd.h"
 #include "storage/ipc.h"
index c018c90524f50214ac12edbad99fdd8fa571ad34..37079981df9ad69ffbc22d20d3453f3f427d09cf 100644 (file)
@@ -33,8 +33,8 @@
 
 #include "bootstrap/bootstrap.h"
 #include "common/username.h"
+#include "port/atomics.h"
 #include "postmaster/postmaster.h"
-#include "storage/barrier.h"
 #include "storage/s_lock.h"
 #include "storage/spin.h"
 #include "tcop/tcopprot.h"
index 8f6255432e54ffb024420b15ffeff7ed9d10caaf..92495850db0ec89c72f8349ee8219aaae78f68da 100644 (file)
@@ -17,9 +17,9 @@
 #include "libpq/pqsignal.h"
 #include "miscadmin.h"
 #include "pgstat.h"
+#include "port/atomics.h"
 #include "postmaster/bgworker_internals.h"
 #include "postmaster/postmaster.h"
-#include "storage/barrier.h"
 #include "storage/dsm.h"
 #include "storage/ipc.h"
 #include "storage/latch.h"
index 8488f944de523e0d42afa8a34501af2ab579c477..b7e512978315aea0f28a509d5c64fea8ecf54ced 100644 (file)
@@ -56,9 +56,9 @@
 
 #include "miscadmin.h"
 #include "pgstat.h"
+#include "port/atomics.h"
 #include "portability/instr_time.h"
 #include "postmaster/postmaster.h"
-#include "storage/barrier.h"
 #include "storage/latch.h"
 #include "storage/pmsignal.h"
 #include "storage/shmem.h"
index 55248c2ac2710362ac9e37f98cf7c364273113d8..a0652125aa4052b45c2d6e83e680a9ef393e0ab3 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "postgres.h"
 
-#include "storage/barrier.h"
+#include "port/atomics.h"
 #include "storage/shm_toc.h"
 #include "storage/spin.h"
 
index 599940cbd2d493271922059584ecc785f0f620bd..6f818388cbed3606c92f1a151f65925b3b44176c 100644 (file)
@@ -51,7 +51,7 @@
 #include <unistd.h>
 
 #include "storage/s_lock.h"
-#include "storage/barrier.h"
+#include "port/atomics.h"
 
 
 #define MIN_SPINS_PER_DELAY 10
index 4e8dac63ed726c897374c52acbb01ce78b0a819a..0b85b7ad3ae9975eb20e6803c86c498e037ff0de 100644 (file)
@@ -14,9 +14,9 @@
 #include "datatype/timestamp.h"
 #include "fmgr.h"
 #include "libpq/pqcomm.h"
+#include "port/atomics.h"
 #include "portability/instr_time.h"
 #include "postmaster/pgarch.h"
-#include "storage/barrier.h"
 #include "storage/proc.h"
 #include "utils/hsearch.h"
 #include "utils/relcache.h"
diff --git a/src/include/storage/barrier.h b/src/include/storage/barrier.h
deleted file mode 100644 (file)
index 6202e57..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * barrier.h
- *       Memory barrier operations.
- *
- * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
- * Portions Copyright (c) 1994, Regents of the University of California
- *
- * src/include/storage/barrier.h
- *
- *-------------------------------------------------------------------------
- */
-#ifndef BARRIER_H
-#define BARRIER_H
-
-/*
- * This used to be a separate file, full of compiler/architecture
- * dependent defines, but it's not included in the atomics.h
- * infrastructure and just kept for backward compatibility.
- */
-#include "port/atomics.h"
-
-#endif   /* BARRIER_H */