Quantcast
Viewing all articles
Browse latest Browse all 20019

Re: Deleting a node does not delete assigned pollers

Hi Richard,

 

I looked at dbm_Pollers_DeleteOrphans, this is the sql in it:

 

DELETE FROM Pollers

  WHERE (NetObject LIKE 'V%')

   AND (SUBSTRING(NetObject, 3, 10) IN (SELECT VolumeId FROM DeletedVolumes))

 

 

  DELETE FROM Pollers

  WHERE (NetObject LIKE 'N%')

   AND (SUBSTRING(NetObject, 3, 10) IN (SELECT NodeId FROM DeletedNodes))

 

From the above I do not think that the netobjectid (SUBSTRING(NetObject, 3, 10)) will match the volumeid in DeletedVolumes, unless the volumeId is the nodeId. The same is the case for deleting the interface pollers:

 

DELETE FROM Pollers

  WHERE (NetObjectType = 'I' OR NetObjectType = 'IW')

  AND (NetObjectID IN (SELECT InterfaceId FROM DeletedInterfaces))

 

Am I correct in this thinking?

 

Thanks,

 

Nuruddin


Viewing all articles
Browse latest Browse all 20019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>