aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2016-03-18 11:43:59 -0700
committerAndres Freund <andres@anarazel.de>2016-03-18 11:46:42 -0700
commitfad0f9d8c9f6a8e99156b8f01cba54be39f31761 (patch)
tree73cab9390eef21f7e5ac7cd3292898f9e6e48cfd
parent0bf3ae88af330496517722e391e7c975e6bad219 (diff)
downloadpostgresql-fad0f9d8c9f6a8e99156b8f01cba54be39f31761.tar.gz
postgresql-fad0f9d8c9f6a8e99156b8f01cba54be39f31761.zip
Remove unused, and dangerous, TestLatch() macro.
The macro has not seen any in-tree use since latches had been introduced in 2746e5f, in 2010.
-rw-r--r--src/include/storage/latch.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/include/storage/latch.h b/src/include/storage/latch.h
index e77491e71f3..737e11d0168 100644
--- a/src/include/storage/latch.h
+++ b/src/include/storage/latch.h
@@ -116,8 +116,6 @@ extern int WaitLatchOrSocket(volatile Latch *latch, int wakeEvents,
extern void SetLatch(volatile Latch *latch);
extern void ResetLatch(volatile Latch *latch);
-/* beware of memory ordering issues if you use this macro! */
-#define TestLatch(latch) (((volatile Latch *) (latch))->is_set)
/*
* Unix implementation uses SIGUSR1 for inter-process signaling.