Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

MutableSidref.H

Go to the documentation of this file.
00001 // Copyright (C) 2005, Vesta free software project
00002 // 
00003 // This file is part of Vesta.
00004 // 
00005 // Vesta is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 // 
00010 // Vesta is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with Vesta; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019 // MutableSidref.H - suopport functions for mutable shortid reference
00020 // counting in the mutable root
00021 
00022 #include "VestaSource.H"
00023 
00024 // Initialize the mutable shortid reference counter.  Note: doesn't
00025 // acquire StableLock, assumes that the repository isn't yet "open for
00026 // business".
00027 void MutableSidrefInit();
00028 
00029 // Optional paranoid consistency checks of the mutable shortid
00030 // reference counter
00031 void MutableSidrefCheck(VestaSource *vs, ReadersWritersLock *lock);
00032 void MutableSidrefCheck(const LongId &longid, ReadersWritersLock *lock = 0);
00033 void MutableSidrefCheck(ReadersWritersLock *lock = 0,
00034                         LongId::lockKindTag lockKind = LongId::writeLock);
00035 
00036 // Should we do a consistency check during log recovery?  This also
00037 // determines whether we rebuild the mutable shortid reference counts
00038 // after reading the checkpoint file or after finishing recovery of
00039 // all transaction logs.
00040 bool MutableSidrefRecoveryCheck();

Generated on Mon May 8 00:48:45 2006 for Vesta by  doxygen 1.4.2