mariadb/storage/bdb/qam/qam.src

99 lines
1.9 KiB
Text
Raw Normal View History

2001-03-04 19:42:05 -05:00
/*-
* See the file LICENSE for redistribution information.
*
2005-12-05 10:27:46 -08:00
* Copyright (c) 1999-2005
2001-03-04 19:42:05 -05:00
* Sleepycat Software. All rights reserved.
*
2005-12-05 10:27:46 -08:00
* $Id: qam.src,v 12.1 2005/06/16 20:23:32 bostic Exp $
2001-03-04 19:42:05 -05:00
*/
2002-10-30 15:57:05 +04:00
PREFIX __qam
DBPRIVATE
2001-03-04 19:42:05 -05:00
INCLUDE #ifndef NO_SYSTEM_INCLUDES
INCLUDE #include <sys/types.h>
INCLUDE
INCLUDE #include <ctype.h>
INCLUDE #include <string.h>
INCLUDE #endif
INCLUDE
INCLUDE #include "db_int.h"
2002-10-30 15:57:05 +04:00
INCLUDE #include "dbinc/crypto.h"
INCLUDE #include "dbinc/db_page.h"
INCLUDE #include "dbinc/db_dispatch.h"
INCLUDE #include "dbinc/db_am.h"
INCLUDE #include "dbinc/log.h"
INCLUDE #include "dbinc/qam.h"
INCLUDE #include "dbinc/txn.h"
2001-03-04 19:42:05 -05:00
INCLUDE
/*
* incfirst
* Used when we increment first_recno.
*/
2002-10-30 15:57:05 +04:00
BEGIN incfirst 84
DB fileid int32_t ld
2001-03-04 19:42:05 -05:00
ARG recno db_recno_t lu
2005-07-20 15:48:22 -07:00
ARG meta_pgno db_pgno_t lu
2001-03-04 19:42:05 -05:00
END
/*
* mvptr
* Used when we change one or both of cur_recno and first_recno.
*/
2002-10-30 15:57:05 +04:00
BEGIN mvptr 85
2001-03-04 19:42:05 -05:00
ARG opcode u_int32_t lu
2002-10-30 15:57:05 +04:00
DB fileid int32_t ld
2001-03-04 19:42:05 -05:00
ARG old_first db_recno_t lu
ARG new_first db_recno_t lu
ARG old_cur db_recno_t lu
ARG new_cur db_recno_t lu
POINTER metalsn DB_LSN * lu
2005-07-20 15:48:22 -07:00
ARG meta_pgno db_pgno_t lu
2001-03-04 19:42:05 -05:00
END
2002-10-30 15:57:05 +04:00
2001-03-04 19:42:05 -05:00
/*
* del
* Used when we delete a record.
* recno is the record that is being deleted.
*/
BEGIN del 79
2002-10-30 15:57:05 +04:00
DB fileid int32_t ld
2001-03-04 19:42:05 -05:00
POINTER lsn DB_LSN * lu
2005-07-20 15:48:22 -07:00
ARG pgno db_pgno_t lu
2001-03-04 19:42:05 -05:00
ARG indx u_int32_t lu
ARG recno db_recno_t lu
END
/*
* add
* Used when we put a record on a page.
* recno is the record being added.
* data is the record itself.
*/
BEGIN add 80
2002-10-30 15:57:05 +04:00
DB fileid int32_t ld
2001-03-04 19:42:05 -05:00
POINTER lsn DB_LSN * lu
2005-07-20 15:48:22 -07:00
ARG pgno db_pgno_t lu
2001-03-04 19:42:05 -05:00
ARG indx u_int32_t lu
ARG recno db_recno_t lu
DBT data DBT s
ARG vflag u_int32_t lu
DBT olddata DBT s
END
/*
* delext
* Used when we delete a record in extent based queue.
* recno is the record that is being deleted.
*/
BEGIN delext 83
2002-10-30 15:57:05 +04:00
DB fileid int32_t ld
2001-03-04 19:42:05 -05:00
POINTER lsn DB_LSN * lu
ARG pgno db_pgno_t lu
ARG indx u_int32_t lu
ARG recno db_recno_t lu
DBT data DBT s
END