Skip to content

Commit e26ec10

Browse files
committed
Merge commit '8249f7e983e0def9344935edb93474ebffaaec9d' into PGPRO9_6_pathman
2 parents 477a0dd + 8249f7e commit e26ec10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/pg_pathman/src/partition_creation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ typedef struct
9797
{
9898
struct
9999
{
100-
/* nothing */
100+
void *none; /* nothing (struct should have at least 1 element) */
101101
} hash_params;
102102

103103
struct
@@ -130,9 +130,9 @@ typedef struct
130130
do \
131131
{ \
132132
memset((void *) (params_p), 0, sizeof(init_callback_params)); \
133+
(params_p)->cb_type = PT_INIT_CALLBACK; \
133134
(params_p)->callback = (cb); \
134135
(params_p)->callback_is_cached = false; \
135-
(params_p)->cb_type = PT_INIT_CALLBACK; \
136136
(params_p)->parttype = PT_HASH; \
137137
(params_p)->parent_relid = (parent); \
138138
(params_p)->partition_relid = (child); \

0 commit comments

Comments
 (0)