1: # include "../ingres.h"
2: # include "../access.h"
3:
4: /*
5: ** Delete - delete the tuple specified by tid
6: **
7: ** Delete removes the tuple specified by tid
8: ** and reclaims the tuple space.
9: **
10: ** returns:
11: ** <0 fatal error
12: ** 0 success
13: ** 2 tuple specified by tid aleady deleted
14: */
15:
16:
17:
18: delete(dx, tidx)
19: struct descriptor *dx;
20: struct tup_id *tidx;
21: {
22: register struct descriptor *d;
23: register struct tup_id *tid;
24: register int i;
25:
26: d = dx;
27: tid = tidx;
28:
29: # ifdef xATR1
30: if (tTf(91, 0))
31: {
32: printf("delete: %.14s,", d->relid);
33: dumptid(tid);
34: }
35: # endif
36:
37: if (i = get_page(d, tid))
38: return (i);
39:
40: if (i = invalid(tid))
41: return (i);
42:
43: i = tup_len(tid);
44:
45: del_tuple(tid, i);
46: d->reladds--;
47:
48: return (0);
49: }
Defined functions
delete
defined in line
18; used 22 times
- in /usr/ingres/source/dbu/destroy.c line
100
- in /usr/ingres/source/dbu/purgetup.c line
34
- in /usr/ingres/source/dbu/rmqm.c line
461,
539,
603
- in /usr/ingres/source/dbu/secupdate.c line
129
- in /usr/ingres/source/dbu/update.c line
73
- in /usr/ingres/source/dbu/userdestroy.c line
64,
96
- in /usr/ingres/source/ovqp/scan.c line
282
- in /usr/ingres/source/support/restore.c line
352,
408,
456,
481,
582,
650,
858,
886,
955,
972,
1042,
1059