outdated comment in heapam.c
outdated comment in heapam.c
От:
Andres Freund <andres@anarazel.de>
Дата:
Hi, It seems that when Heikki added the multi_insert code the following comment in htup.h wasn't updated: /** We ran out of opcodes, so heapam.c now has a second RmgrId. These opcodes* are associated with RM_HEAP2_ID, but are not logically different from* the ones above associated with RM_HEAP_ID. We apply XLOG_HEAP_OPMASK,* although currently XLOG_HEAP_INIT_PAGE is not used for any of these.*/ #define XLOG_HEAP2_FREEZE 0x00 #define XLOG_HEAP2_CLEAN 0x10 /* 0x20 is free, was XLOG_HEAP2_CLEAN_MOVE */ #define XLOG_HEAP2_CLEANUP_INFO 0x30 #define XLOG_HEAP2_VISIBLE 0x40 #define XLOG_HEAP2_MULTI_INSERT 0x50 I suggest simply to remove the "although currently XLOG_HEAP_INIT_PAGE is not used for any of these" part. Andres
Re: outdated comment in heapam.c
От:
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Дата:
On 03.05.2012 16:08, Andres Freund wrote: > Hi, > > It seems that when Heikki added the multi_insert code the following comment in > htup.h wasn't updated: > /* > * We ran out of opcodes, so heapam.c now has a second RmgrId. These opcodes > * are associated with RM_HEAP2_ID, but are not logically different from > * the ones above associated with RM_HEAP_ID. We apply XLOG_HEAP_OPMASK, > * although currently XLOG_HEAP_INIT_PAGE is not used for any of these. > */ > #define XLOG_HEAP2_FREEZE 0x00 > #define XLOG_HEAP2_CLEAN 0x10 > /* 0x20 is free, was XLOG_HEAP2_CLEAN_MOVE */ > #define XLOG_HEAP2_CLEANUP_INFO 0x30 > #define XLOG_HEAP2_VISIBLE 0x40 > #define XLOG_HEAP2_MULTI_INSERT 0x50 > > I suggest simply to remove the "although currently XLOG_HEAP_INIT_PAGE is not > used for any of these" part. Thanks, fixed! -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com