%PDF- %PDF-
Direktori : /opt/plesk/python/2.7/lib64/python2.7/bsddb/test/ |
Current File : //opt/plesk/python/2.7/lib64/python2.7/bsddb/test/test_replication.pyo |
� 5}�ac @ s� d Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z m Z m Z d e j f d � � YZ d e f d � � YZ d e f d � � YZ d � Z e d k r� e j d d � n d S( s( TestCases for distributed transactions. i����N( t dbt test_supportt have_threadst verboset get_new_environment_patht get_new_database_patht DBReplicationc B s e Z d � Z d � Z RS( c s2 t � � _ t � � _ t j � � _ t j � � _ � j j � j t j t j Bt j Bt j Bt j Bt j Bt j Bt j Bd � � j j � j t j t j Bt j Bt j Bt j Bt j Bt j Bt j Bd � t � _ � _ � f d � } � f d � } � j j | � � j j | � d � _ � _ d S( Ni� c s | t j k r t � _ n d S( N( R t DB_EVENT_REP_MASTERt Truet confirmed_master( t at bt c( t self( sD /opt/plesk/python/2.7/lib64/python2.7/bsddb/test/test_replication.pyR ! s c s | t j k r t � _ n d S( N( R t DB_EVENT_REP_STARTUPDONER t client_startupdone( R R R ( R ( sD /opt/plesk/python/2.7/lib64/python2.7/bsddb/test/test_replication.pyR % s ( R t homeDirMastert homeDirClientR t DBEnvt dbenvMastert dbenvClientt opent DB_CREATEt DB_INIT_TXNt DB_INIT_LOGt DB_INIT_MPOOLt DB_INIT_LOCKt DB_INIT_REPt DB_RECOVERt DB_THREADt FalseR R t set_event_notifyt Nonet dbMastert dbClient( R R R ( ( R sD /opt/plesk/python/2.7/lib64/python2.7/bsddb/test/test_replication.pyt setUp s >>c C s� | j r | j j � n | j r2 | j j � n d � } | j j | � | j j | � | j j � | j j � t j | j � t j | j � d S( Nc W s d S( N( ( t args( ( sD /opt/plesk/python/2.7/lib64/python2.7/bsddb/test/test_replication.pyt dummy= s ( R"