diff options
author | unknown <marko@hundin.mysql.fi> | 2004-02-20 16:34:09 +0200 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2004-02-20 16:34:09 +0200 |
commit | 0eacf58fd5ebc665ce799a673739c97d6157b13b (patch) | |
tree | 96c04a7ccc804314e3737d02fc081513e1e827db /innobase/page | |
parent | f443541a36769eaacf9228ad517ed224c827c565 (diff) | |
download | mariadb-git-0eacf58fd5ebc665ce799a673739c97d6157b13b.tar.gz |
Many files:
Removed unused code
.del-os0trash.c~8cae5c1695501117:
Delete: innobase/os/os0trash.c
dict0crea.c:
Protect all sprintf(%s) with assertions
BitKeeper/deleted/.del-os0trash.c~8cae5c1695501117:
Delete: innobase/os/os0trash.c
innobase/btr/btr0sea.c:
Removed unused code
innobase/buf/buf0buf.c:
Removed unused code
innobase/com/com0shm.c:
Removed unused code
innobase/data/data0data.c:
Removed unused code
innobase/dict/dict0crea.c:
Removed unused code
innobase/fsp/fsp0fsp.c:
Removed unused code
innobase/ha/ha0ha.c:
Removed unused code
innobase/include/btr0cur.h:
Removed unused code
innobase/include/btr0sea.h:
Removed unused code
innobase/include/buf0buf.ic:
Removed unused code
innobase/include/data0data.h:
Removed unused code
innobase/include/dict0crea.h:
Removed unused code
innobase/include/dict0dict.h:
Removed unused code
innobase/include/ibuf0ibuf.h:
Removed unused code
innobase/include/lock0lock.h:
Removed unused code
innobase/include/mem0dbg.h:
Removed unused code
innobase/include/mem0mem.ic:
Removed unused code
innobase/include/mtr0log.h:
Removed unused code
innobase/include/mtr0mtr.h:
Removed unused code
innobase/include/os0proc.h:
Removed unused code
innobase/include/os0thread.h:
Removed unused code
innobase/include/rem0cmp.ic:
Removed unused code
innobase/include/row0row.h:
Removed unused code
innobase/include/srv0srv.h:
Removed unused code
innobase/include/sync0sync.h:
Removed unused code
innobase/lock/lock0lock.c:
Removed unused code
innobase/log/log0recv.c:
Removed unused code
innobase/mem/mem0dbg.c:
Removed unused code
innobase/mtr/mtr0mtr.c:
Removed unused code
innobase/os/os0proc.c:
Removed unused code
innobase/page/page0page.c:
Removed unused code
innobase/que/que0que.c:
Removed unused code
innobase/rem/rem0cmp.c:
Removed unused code
innobase/row/row0ins.c:
Removed unused code
innobase/row/row0mysql.c:
Removed unused code
innobase/row/row0row.c:
Removed unused code
innobase/srv/srv0srv.c:
Removed unused code
innobase/srv/srv0start.c:
Removed unused code
innobase/sync/sync0sync.c:
Removed unused code
innobase/trx/trx0rec.c:
Removed unused code
innobase/trx/trx0trx.c:
Removed unused code
innobase/ut/ut0dbg.c:
Removed unused code
innobase/ut/ut0mem.c:
Removed unused code
innobase/ut/ut0ut.c:
Removed unused code
Diffstat (limited to 'innobase/page')
-rw-r--r-- | innobase/page/page0page.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/innobase/page/page0page.c b/innobase/page/page0page.c index e087941a970..71031263fbf 100644 --- a/innobase/page/page0page.c +++ b/innobase/page/page0page.c @@ -19,9 +19,6 @@ Created 2/2/1994 Heikki Tuuri #include "btr0sea.h" #include "buf0buf.h" -/* A cached template page used in page_create */ -page_t* page_template = NULL; - /* THE INDEX PAGE ============== @@ -321,20 +318,6 @@ page_create( fil_page_set_type(page, FIL_PAGE_INDEX); - /* If we have a page template, copy the page structure from there */ - - if (page_template) { - ut_memcpy(page + PAGE_HEADER, - page_template + PAGE_HEADER, PAGE_HEADER_PRIV_END); - ut_memcpy(page + PAGE_DATA, - page_template + PAGE_DATA, - PAGE_SUPREMUM_END - PAGE_DATA); - ut_memcpy(page + UNIV_PAGE_SIZE - PAGE_EMPTY_DIR_START, - page_template + UNIV_PAGE_SIZE - PAGE_EMPTY_DIR_START, - PAGE_EMPTY_DIR_START - PAGE_DIR); - return(frame); - } - heap = mem_heap_create(200); /* 3. CREATE THE INFIMUM AND SUPREMUM RECORDS */ @@ -409,17 +392,6 @@ page_create( rec_set_next_offs(infimum_rec, (ulint)(supremum_rec - page)); rec_set_next_offs(supremum_rec, 0); -#ifdef notdefined - /* Disable the use of page_template: there is a race condition here: - while one thread is creating page_template, another one can start - using it before the memcpy completes! */ - - if (page_template == NULL) { - page_template = mem_alloc(UNIV_PAGE_SIZE); - - ut_memcpy(page_template, page, UNIV_PAGE_SIZE); - } -#endif return(page); } |