Description
checkIndexedis intended as way to resolve a store index exception under program control (see
“The5800 System Query Integrity Model” on page 21). Once a store index exception occurs (as
indicatedby a non-zero value of the is_indexed eld in the hc_system_record_t returned
froma store operation) then hc_check_indexed_ez can be called repeatedly until it returns
with*resultp set to any non-zero value. This will ensure that the metadata for the object has
beeninserted into the query engine; the object should then start to show up in matching
queries.
Parameters
session
IN:The session for the host and port to talk to.
oid
IN:An identier of object data to which the metadata record is attached.
resultp
OUT:Points to an int that is updated to a value that indicates if the metadata for this object has
beeninserted into the query engine. The returned value of *resultp is set to -1 if the object was
alreadypresent in the query engine, and is set to 0if the object was not already in the query
engineand could not be added, and to 1if the object was just now added to the query engine. In
otherwords, a non-zero value of resultp indicates that the store index exception has been
resolved.
ReturnCodes
HCERR_OK
HCERR_BAD_REQUEST
HCERR_OOM
HCERR_NULL_SESSION
HCERR_INVALID_SESSION
HCERR_INVALID_OID
SynchronousCAPI Functions
SunStorageTek5800 System Client API Reference Manual • June 200890