2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: rng.h
|
|
|
|
* DESCRIPTION: Refresh Range Definitions
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#ifndef JRD_RNG_H
|
|
|
|
#define JRD_RNG_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
/* refresh range block used to store info about a particular
|
|
|
|
set of records in a refresh range */
|
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
namespace Jrd {
|
2004-03-18 06:56:06 +01:00
|
|
|
class Attachment;
|
|
|
|
class vec;
|
|
|
|
|
2004-03-19 07:14:53 +01:00
|
|
|
class RefreshRange : public pool_alloc_rpt<SCHAR, type_rng>
|
2001-12-24 03:51:06 +01:00
|
|
|
{
|
|
|
|
public:
|
2004-03-19 07:14:53 +01:00
|
|
|
RefreshRange* rng_next; /* next in list of ranges being created */
|
|
|
|
Attachment* rng_attachment; /* attachment that owns range */
|
|
|
|
RefreshRange* rng_lck_next; /* next in list of ranges interested in a lock */
|
2004-03-18 06:56:06 +01:00
|
|
|
vec* rng_relation_locks; /* relation locks */
|
|
|
|
vec* rng_relation_trans; /* relation transactions */
|
|
|
|
vec* rng_record_locks; /* record locks */
|
|
|
|
vec* rng_page_locks; /* page locks */
|
|
|
|
vec* rng_transaction_locks; /* transaction locks */
|
2001-05-23 15:26:42 +02:00
|
|
|
USHORT rng_relations; /* count of relations in range */
|
|
|
|
USHORT rng_records; /* count of records in range */
|
|
|
|
USHORT rng_pages; /* count of index pages in range */
|
|
|
|
USHORT rng_transactions; /* count of uncommitted transactions in range */
|
|
|
|
USHORT rng_number; /* range number */
|
|
|
|
USHORT rng_flags; /* see flags below */
|
|
|
|
USHORT rng_event_length; /* length of event name */
|
|
|
|
UCHAR rng_event[1]; /* event name to post */
|
2001-12-24 03:51:06 +01:00
|
|
|
};
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2004-05-06 20:09:24 +02:00
|
|
|
const USHORT RNG_posted = 1; /* range has already been posted */
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2004-05-06 20:09:24 +02:00
|
|
|
const int RANGE_NAME_LENGTH = 31; /* max. length of range name for the event */
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
} //namespace Jrd
|
|
|
|
|
2004-02-20 07:43:27 +01:00
|
|
|
#endif // JRD_RNG_H
|
|
|
|
|