|
5 | 5 | * |
6 | 6 | * |
7 | 7 | * IDENTIFICATION |
8 | | - * $Id: nbtsort.c,v 1.36 1999/02/13 23:14:36 momjian Exp $ |
| 8 | + * $Id: nbtsort.c,v 1.37 1999/02/21 03:48:27 scrappy Exp $ |
9 | 9 | * |
10 | 10 | * NOTES |
11 | 11 | * |
@@ -397,7 +397,7 @@ _bt_tapeclear(BTTapeBlock *tape) |
397 | 397 | { |
398 | 398 | /* blow away the contents of the old file */ |
399 | 399 | _bt_taperewind(tape); |
400 | | -#if0 |
| 400 | +#ifdefNOT_USED |
401 | 401 | FileSync(tape->bttb_fd); |
402 | 402 | #endif |
403 | 403 | FileTruncate(tape->bttb_fd,0); |
@@ -781,7 +781,7 @@ _bt_blnewpage(Relation index, Buffer *buf, Page *page, int flags) |
781 | 781 | BTPageOpaqueopaque; |
782 | 782 |
|
783 | 783 | *buf=_bt_getbuf(index,P_NEW,BT_WRITE); |
784 | | -#if0 |
| 784 | +#ifdefNOT_USED |
785 | 785 | printf("\tblk=%d\n",BufferGetBlockNumber(*buf)); |
786 | 786 | #endif |
787 | 787 | *page=BufferGetPage(*buf); |
@@ -962,7 +962,7 @@ _bt_buildadd(Relation index, void *pstate, BTItem bti, int flags) |
962 | 962 | if (PageAddItem(npage,PageGetItem(opage,ii), |
963 | 963 | ii->lp_len,n,LP_USED)==InvalidOffsetNumber) |
964 | 964 | elog(FATAL,"btree: failed to add item to the page in _bt_sort (1)"); |
965 | | -#if0 |
| 965 | +#ifdefNOT_USED |
966 | 966 | #if defined(FASTBUILD_DEBUG)&& defined(FASTBUILD_MERGE) |
967 | 967 | { |
968 | 968 | boolisnull; |
@@ -1048,7 +1048,7 @@ _bt_buildadd(Relation index, void *pstate, BTItem bti, int flags) |
1048 | 1048 | off=OffsetNumberNext(last_off); |
1049 | 1049 | if (PageAddItem(npage, (Item)bti,btisz,off,LP_USED)==InvalidOffsetNumber) |
1050 | 1050 | elog(FATAL,"btree: failed to add item to the page in _bt_sort (2)"); |
1051 | | -#if0 |
| 1051 | +#ifdefNOT_USED |
1052 | 1052 | #if defined(FASTBUILD_DEBUG)&& defined(FASTBUILD_MERGE) |
1053 | 1053 | { |
1054 | 1054 | boolisnull; |
@@ -1382,7 +1382,7 @@ _bt_upperbuild(Relation index) |
1382 | 1382 | /* for each page... */ |
1383 | 1383 | do |
1384 | 1384 | { |
1385 | | -#if0 |
| 1385 | +#ifdefNOT_USED |
1386 | 1386 | printf("\t\tblk=%d\n",blk); |
1387 | 1387 | #endif |
1388 | 1388 | rbuf=_bt_getbuf(index,blk,BT_READ); |
|