Enum(SSM)

Shore Programmer's Manual - 2 August 96

NAME

concurrency_t, store_property_t \- Enumerations for Class ss_m

SYNOPSIS


enum concurrency_t {
    t_cc_none,
    t_cc_kvl,
    t_cc_record,
    t_cc_page,
    t_cc_file,
    t_cc_volume,
};

enum sm_store_property_t {
    t_regular,
    t_temporary
};

DESCRIPTION

enum concurrency_t

The enumeration, concurrency_t is used for specifying locking granularity, which is based on the lock hierarchy. The lock hierarchy for files is: volume, file, page, slot-containing-record. The hierarchy for indexes is: volume, index, key-value. The values for the enumeration have the following general meanings (more specific meanings are described in the context of where they are used):

t_cc_none:
No locking is to be done, or only the minimal needed to maintain basic consistency.
t_cc_volume:
Acquire only volume level locks.
t_cc_file:
Acquire only volume, file and index level locks.
t_cc_page:
Acquire volume, file and page level locks.
t_cc_record:
Acquire volume, file, page and record-level locks.
t_cc_kvl:
Acquire volume, index and key-value locks.

enum sm_store_property_t

The enumeration, sm_store_property_t is used to specify special properties that a file or index (commonly called a store) should have. The values for the enumeration have the following meanings:

t_regular:
File or index has no special properties.
t_temporary:
File or index is temporary. This means that no logging or locking will be done on the data in the file or index.

VERSION

This manual page applies to Version 1.0 of theShore software.

SPONSORSHIP

The Shore project is sponsored by the Advanced Research Project Agency, ARPA order number 018 (formerly 8230), monitored by the U.S. Army Research Laboratory under contract DAAB07-92-C-Q508.

COPYRIGHT

Copyright (c) 1994, 1995, 1996 Computer Sciences Department, University of Wisconsin -- Madison. All Rights Reserved.

SEE ALSO

intro(ssm) , lock(ssm) .