diff options
Diffstat (limited to 'src/backend/storage/ipc/dsm.c')
-rw-r--r-- | src/backend/storage/ipc/dsm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/ipc/dsm.c b/src/backend/storage/ipc/dsm.c index 9d86bbe8724..a360325f864 100644 --- a/src/backend/storage/ipc/dsm.c +++ b/src/backend/storage/ipc/dsm.c @@ -1045,7 +1045,7 @@ dsm_unpin_segment(dsm_handle handle) * Find an existing mapping for a shared memory segment, if there is one. */ dsm_segment * -dsm_find_mapping(dsm_handle h) +dsm_find_mapping(dsm_handle handle) { dlist_iter iter; dsm_segment *seg; @@ -1053,7 +1053,7 @@ dsm_find_mapping(dsm_handle h) dlist_foreach(iter, &dsm_segment_list) { seg = dlist_container(dsm_segment, node, iter.cur); - if (seg->handle == h) + if (seg->handle == handle) return seg; } |