00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #include "ShortIdBlock.H"
00029 #include "ShortIdImpl.H"
00030 #include "VRWeed.H"
00031 #include <assert.h>
00032
00033 ShortIdBlock*
00034 ShortIdBlock::acquire(bool leafflag)
00035 throw (SRPC::failure )
00036 {
00037 ShortIdBlock* sib = NEW(ShortIdBlock);
00038 AcquireShortIdBlock(*sib, leafflag, true);
00039 return sib;
00040 }
00041
00042 bool
00043 ShortIdBlock::renew(ShortIdBlock* block)
00044 throw (SRPC::failure )
00045 {
00046 assert(false);
00047 return true;
00048 }
00049
00050 void
00051 ShortIdBlock::release(ShortIdBlock* block)
00052 throw (SRPC::failure )
00053 {
00054 ReleaseShortIdBlock(*block, true);
00055 }
00056
00057 int
00058 ShortIdBlock::keepDerived(ShortIdsFile ds, time_t dt, bool force)
00059 throw (SRPC::failure )
00060 {
00061 return KeepDerived(ds, dt, force);
00062 }
00063
00064 void
00065 ShortIdBlock::checkpoint()
00066 throw (SRPC::failure )
00067 {
00068 Checkpoint();
00069 }
00070
00071 void
00072 ShortIdBlock::getWeedingState(ShortIdsFile& ds, time_t& dt,
00073 ShortIdsFile& ss, time_t& st,
00074 bool& sourceWeedInProgress,
00075 bool& deletionsInProgress,
00076 bool& deletionsDone,
00077 bool& checkpointInProgress)
00078 throw (SRPC::failure )
00079 {
00080 GetWeedingState(ds, dt, ss, st, sourceWeedInProgress,
00081 deletionsInProgress, deletionsDone, checkpointInProgress);
00082 }