Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6a04c41

Browse files
author
Alexander Korotkov
committed
Fix invalid page reference in VALGRIND_CHECK_MEM_IS_DEFINED().
1 parent e629542 commit 6a04c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/in_memory/btree_page.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ unlock_page(Page p, uint32 state)
104104
}
105105
}
106106

107-
VALGRIND_CHECK_MEM_IS_DEFINED(GET_PAGE(pagenum), IN_MEMORY_BLCKSZ);
107+
VALGRIND_CHECK_MEM_IS_DEFINED(p, IN_MEMORY_BLCKSZ);
108108
state = UNLOCK_STATE(state);
109109
pg_write_barrier();
110110
pg_atomic_write_u32(&header->state, state);

0 commit comments

Comments
 (0)