Changeset 16409

Show
Ignore:
Timestamp:
05/20/08 09:21:11 (3 months ago)
Author:
rambo
Message:

make the DBA wather replication blacklist configurable and add a few more object we should not automatically replicate

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/MidCOM_2_8/midcom.helper.replicator/config/config.inc

    r16293 r16409  
    11'queue_root_dir' => '/var/spool/midgard/replicator_queue/', 
    22'log_filename'   => "{$GLOBALS['midcom_config']['log_filename']}.replicator", 
     3'watcher_skip_classes' => array // Classes never to replicate via DBA watcher 
     4( 
     5    'midcom_helper_replicator_subscription', 
     6    'midcom_services_at_entry', 
     7    'midcom_core_login_session_db', 
     8    'midcom_core_temporary_object_db', 
     9), 
    310'exporter_staging2live_check_approvals_for' => array 
    411( 
  • branches/MidCOM_2_8/midcom.helper.replicator/midcom/interfaces.php

    r14218 r16409  
    7070    function _on_watched_operation($operation, &$object) 
    7171    { 
    72         if (   is_a($object, 'midcom_helper_replicator_subscription') 
    73             || is_a($object, 'midcom_services_at_entry') 
    74             ) 
    75         { 
    76             // Never DBA queue subscription and AT entry objects 
    77             return; 
     72        $skip_classes = $this->_config->get('watcher_skip_classes'); 
     73        foreach ($skip_classes as $class) 
     74        { 
     75            if (is_a($object, $class)) 
     76            { 
     77                return; 
     78            } 
    7879        } 
    7980        $qmanager =& midcom_helper_replicator_queuemanager::get();