Loading...
 

CX_DB_UTILITY::FindObjectsReferencingPosition

CX_DB_UTILITY::FindObjectsReferencingPosition

Description:

Find all objects with references to a specific location in the database.
Sense of the method: there is a local database corruption. If you know all objects that reference other objects in this area, you can - with data loss - repair the corruption.

In the current version, the "interesting place" of a possible damage is a cluster.
An extension to an offset range is easy to implement. Then do it when it is really needed!

Code example:

Var(dbUtil) 
GetManager(OBJECT) Call(GetDBUtility) -> dbUtil 
"affectedObjects.log" 2010 /* segment to check */ 5044 /* segment with damage */ 304 /* bad cluster */  dbUtil Call(FindObjectsReferencingPosition

Stack
Stack Position Object type Brief description
Stack(In) Top OBJECT Database Utility
Top 1 INTEGER (Target) cluster
top 2 INTEGER (Target) segment
top 3 INTEGER Segment to be analysed
top 4 STRING the log file
Stack(Out) -

Function call: Call(FindObjectsReferencingPosition)