File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/backend/storage/buffer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.238 2008/09/17 13:15:55 tgl Exp $
11
+ * $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.239 2008/10/20 21:11:15 alvherre Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
48
48
49
49
/* Note: these two macros only work on shared buffers, not local ones! */
50
50
#define BufHdrGetBlock (bufHdr ) ((Block) (BufferBlocks + ((Size) (bufHdr)->buf_id) * BLCKSZ))
51
- #define BufferGetLSN (bufHdr ) (*((XLogRecPtr*) BufHdrGetBlock(bufHdr)))
51
+ #define BufferGetLSN (bufHdr ) (PageGetLSN( BufHdrGetBlock(bufHdr)))
52
52
53
53
/* Note: this macro only works on local buffers, not shared ones! */
54
54
#define LocalBufHdrGetBlock (bufHdr ) \
You can’t perform that action at this time.
0 commit comments