#include "UniqueId.H"
#include "FP.H"
#include "VestaSource.H"
#include "VDirSurrogate.H"
#include "logging.H"
#include "VRConcurrency.H"
#include "Mastership.H"
#include "VLogHelp.H"
#include "lock_timing.H"
Go to the source code of this file.
Defines | |
#define | RECOVER_MASTERSHIP_SLEEP 3600 |
Functions | |
bool | MastershipAccessCheck (VestaSource *vs, const char *direction, const char *hostport) throw () |
VestaSource::errorCode | AcquireMastership (const char *pathname, const char *srcHost, const char *srcPort, char pathnameSep, AccessControl::Identity dwho, AccessControl::Identity swho) throw () |
void | QueueRecoverMastership (const char *pathname, char pathnameSep, const char *requestid) throw () |
void | DequeueRecoverMastershipL (RecoverMastershipInfo *rminfo) |
void | DequeueRecoverMastership (RecoverMastershipInfo *rminfo) |
void | MastershipCheckpoint (fstream &ckpt) throw () |
void | MastershipInit1 () throw () |
void | MastershipInit2 () throw () |
Variables | |
Text | myHostPort |
Text | myMasterHint |
|
Definition at line 671 of file Mastership.C. |
|
|
Definition at line 906 of file Mastership.C. References DequeueRecoverMastershipL(), Basics::mutex::lock(), and Basics::mutex::unlock(). |
|
Definition at line 890 of file Mastership.C. References RecoverMastershipInfo::next. Referenced by DequeueRecoverMastership(). |
|
Definition at line 69 of file Mastership.C. Referenced by AcquireMastership(), and VestaSource::cedeMastership(). |
|
Definition at line 1021 of file Mastership.C. References Basics::mutex::lock(), RecoverMastershipInfo::next, RecoverMastershipInfo::pathname, RecoverMastershipInfo::pathnameSep, PutQuotedString(), RecoverMastershipInfo::requestid, and Basics::mutex::unlock(). Referenced by CheckpointServer(). |
|
Definition at line 1250 of file Mastership.C. References DBG_ALWAYS, VDirSurrogate::defaultHost(), VDirSurrogate::defaultPort(), Repos::dprintf(), Text::Empty(), Text::FindChar(), VestaConfig::get(), TCP_sock::host_to_addr(), inet_ntoa_r(), Text::Length(), VestaConfig::failure::msg, and RegisterRecoveryCallback(). Referenced by main(). |
|
Definition at line 1365 of file Mastership.C. References Basics::thread::fork(). Referenced by main(). |
|
Definition at line 871 of file Mastership.C. References Basics::mutex::lock(), NEW, RecoverMastershipInfo::next, RecoverMastershipInfo::pathname, RecoverMastershipInfo::pathnameSep, RecoverMastershipInfo::prev, RecoverMastershipInfo::requestid, Basics::cond::signal(), and Basics::mutex::unlock(). Referenced by AcquireMastership(). |
|
Definition at line 43 of file Mastership.C. |
|
Definition at line 43 of file Mastership.C. Referenced by do_mkdir(), and InsertAppendableDirectoryStep::execute(). |