Table of Contents

Module: FileStorage Zope-2.2.1-src/lib/python/ZODB/FileStorage.py

Imported modules   
import BaseStorage
import POSException
from TimeStamp import TimeStamp
import base64
import bpthread
from cPickle import loads, Pickler, Unpickler
from lock_file import lock_file
import os
import string
from struct import pack, unpack
import sys
import time
from utils import t32, p64, U64, cp
from zLOG import LOG, WARNING, ERROR, PANIC, register_subsystem
Functions   
_loadBack
_loadBackPOS
_truncate
error
nearPanic
panic
read_index
recover
search_back
shift_transactions_forward
warn
  _loadBack 
_loadBack (
        file,
        oid,
        back,
        )

Exceptions   
KeyError
  _loadBackPOS 
_loadBackPOS (
        file,
        oid,
        back,
        )

Exceptions   
KeyError
  _truncate 
_truncate (
        file,
        name,
        pos,
        )

Exceptions   
POSException.StorageSystemError
  error 
error ( message,  *data )

  nearPanic 
nearPanic ( message,  *data )

  panic 
panic ( message,  *data )

Exceptions   
CorruptedTransactionError
  read_index 
read_index (
        file,
        name,
        index,
        vindex,
        tindex,
        stop='\\377',
        ltid=z64,
        start=4L,
        maxoid=z64,
        recover=0,
        )

Exceptions   
FileStorageFormatError
  recover 
recover ( file_name )

  search_back 
search_back ( file,  pos )

  shift_transactions_forward 
shift_transactions_forward (
        index,
        vindex,
        tindex,
        file,
        pos,
        opos,
        )

Copy transactions forward in the data file

This might be done as part of a recovery effort

Exceptions   
'Pack Error'
  warn 
warn ( message,  *data )

Classes   
CorruptedDataError
CorruptedFileStorageError

Corrupted file storage

CorruptedTransactionError
FileStorage
FileStorageError
FileStorageFormatError

Invalid file format

FileStorageQuotaError

File storage quota exceeded


Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6