blob: 507d7a65229ff8b346bc1131e9b8e9ab1f4c9858 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1999, 2000
* Sleepycat Software. All rights reserved.
*
* $Id: qam.src,v 11.15 2001/01/16 20:10:55 ubell Exp $
*/
PREFIX qam
INCLUDE #include "db_config.h"
INCLUDE
INCLUDE #ifndef NO_SYSTEM_INCLUDES
INCLUDE #include <sys/types.h>
INCLUDE
INCLUDE #include <ctype.h>
INCLUDE #include <errno.h>
INCLUDE #include <string.h>
INCLUDE #endif
INCLUDE
INCLUDE #include "db_int.h"
INCLUDE #include "db_page.h"
INCLUDE #include "db_dispatch.h"
INCLUDE #include "db_am.h"
INCLUDE #include "qam.h"
INCLUDE #include "txn.h"
INCLUDE
/*
* inc
* Used when we increment a record number. These do not actually
* tell you what record number you got, just that you incremented
* the record number. These operations are never undone.
*/
BEGIN inc 76
ARG fileid int32_t ld
POINTER lsn DB_LSN * lu
END
/*
* incfirst
* Used when we increment first_recno.
*/
BEGIN incfirst 77
ARG fileid int32_t ld
ARG recno db_recno_t lu
END
/*
* mvptr
* Used when we change one or both of cur_recno and first_recno.
*/
BEGIN mvptr 78
ARG opcode u_int32_t lu
ARG fileid int32_t ld
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
END
/*
* del
* Used when we delete a record.
* recno is the record that is being deleted.
*/
BEGIN del 79
ARG fileid int32_t ld
POINTER lsn DB_LSN * lu
ARG pgno db_pgno_t lu
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
ARG fileid int32_t ld
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
ARG vflag u_int32_t lu
DBT olddata DBT s
END
/*
* delete
* Used when we remove a Queue extent file.
*/
BEGIN delete 81
DBT name DBT s
POINTER lsn DB_LSN * lu
END
/*
* rename
* Used when we rename a Queue extent file.
*/
BEGIN rename 82
DBT name DBT s
DBT newname 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
ARG fileid int32_t ld
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
|