我用gdb breakpoint來測make_entry()的效果
結果發現他沒有把我傳進去的data寫到target上
Breakpoint 3, make_entry (target=0x7fffffffd230, key_type=attrInteger,
key=0x7fffffffe840, ndtype=LEAF, data=..., pentry_len=0x7fffffffd32c)
at key.C:178
178 *pentry_len = keylen + datalen;
(gdb) print data
$5 = {pageNo = 0, rid = {pageNo = 0, slotNo = 1}}
(gdb) print (*target).data
$6 = {pageNo = 32767, rid = {pageNo = 32767, slotNo = -11472}}
這應該不太對吧
我還要自己產生goingUp來做新的indexPage, root
可是完全無法傳正確的data上去