Changeset 1206
- Timestamp:
- 12/28/12 15:05:23 (12 years ago)
- Location:
- trunk/LATMOS-Accounts/lib/LATMOS/Accounts
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/SyncManager.pm
r1203 r1206 195 195 } 196 196 197 =head2 reset_module_ checkpoint($module)198 199 Reset the checkpoint for module C<$module> to force it to run at next197 =head2 reset_module_savepoint($module) 198 199 Reset the savepoint for module C<$module> to force it to run at next 200 200 synchronisation. 201 201 202 202 =cut 203 203 204 sub reset_module_ checkpoint {204 sub reset_module_savepoint { 205 205 my ($self, $module) = @_; 206 206 if (!$self->ini->SectionExists($module)) { … … 234 234 ); 235 235 236 $task->reset_ checkpoint; # Specific reset236 $task->reset_savepoint; # Specific reset 237 237 $ini->RewriteConfig; 238 238 } -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Synchro.pm
r1205 r1206 350 350 if ($res) { 351 351 foreach my $destbase ($self->to) { 352 # don't register checkpoint on error352 # don't register savepoint on error 353 353 if ($desterror{$destbase->label}) { next; } 354 354 $self->newval($self->from->label, $destbase->label, $self->{current_rev}); … … 399 399 } 400 400 401 =head2 reset_ checkpoint402 403 Reset checkpoint in status file to force full synchronisation404 405 =cut 406 407 sub reset_ checkpoint {401 =head2 reset_savepoint 402 403 Reset savepoint in status file to force full synchronisation 404 405 =cut 406 407 sub reset_savepoint { 408 408 my ($self) = @_; 409 409 foreach my $destbase ($self->to) { 410 # don't register checkpoint on error410 # don't register savepoint on error 411 411 $self->newval($self->from->label, $destbase->label, 0); 412 412 } -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Task.pm
r1201 r1206 90 90 } 91 91 92 =head2 reset_ checkpoint92 =head2 reset_savepoint 93 93 94 Reset the checkpoint to 0 to force the module to be run again94 Reset the savepoint to 0 to force the module to be run again 95 95 96 96 =cut 97 97 98 sub reset_ checkpoint {98 sub reset_savepoint { 99 99 return 1; 100 100 } -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Task/Basessynchro.pm
r1205 r1206 49 49 } 50 50 51 sub reset_ checkpoint {51 sub reset_savepoint { 52 52 my ($self) = @_; 53 53 my $LA = LATMOS::Accounts->new($self->{config}, noacl => 1) or do { … … 64 64 65 65 66 $sync->reset_ checkpoint66 $sync->reset_savepoint 67 67 } 68 68 -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Task/Buildnet.pm
r1201 r1206 814 814 } 815 815 816 sub reset_ checkpoint {816 sub reset_savepoint { 817 817 my ($self) = @_; 818 818 foreach my $zone ($self->_base->search_objects('netzone')) { … … 821 821 822 822 $self->_bnet_state->newval($ozone->id, 'dbrev', 0); 823 la_log LA_DEBUG, "Zone checkpoint reset for %s", $ozone->id;823 la_log LA_DEBUG, "Zone savepoint reset for %s", $ozone->id; 824 824 $self->_bnet_state->SetParameterComment( 825 825 $ozone->id, 'dbrev', 826 'Reset checkpoint the ' . scalar(localtime));826 'Reset savepoint the ' . scalar(localtime)); 827 827 } 828 828
Note: See TracChangeset
for help on using the changeset viewer.