zmMemVerify attaches, so we need to zmMemInvalidate even if the shared data is no good

This commit is contained in:
Isaac Connor 2017-01-10 15:08:23 -05:00
parent 4d84387807
commit faeb785961
1 changed files with 5 additions and 1 deletions

View File

@ -474,7 +474,11 @@ sub loadTasks
or Fatal( "Can't execute: ".$sth->errstr() );
while( my $monitor = $sth->fetchrow_hashref() )
{
next if ( !zmMemVerify( $monitor ) ); # Check shared memory ok
# Check shared memory ok
if ( !zmMemVerify( $monitor ) ) {
zmMemInvalidate( $monitor );
next ;
}
$monitor_hash{$monitor->{Id}} = $monitor;