UNSOLVED

cballantine

updated

15 years ago

0

2016

March 28th, 2011 10:00

FP_query returns before returning all objects.

We offer our customers a tool to rebuild our indexing information for files stored on a Centera device for the case where they have lost the clip id of their documents. We use the FPPoolQuery_FetchResult() command in a loop, after initializing StartTime to zero, and EndTime to -1. We have our own 'SelectField' , DOC_ID, that we compare to the users input range,

We get this with the FPQueryResult_GetField() call, after FPQueryResult_GetResultCode() returns FP_QUERY_RESULT_CODE_COMPLETE or FP_QUERY_RESULT_CODE_OK.

If FPQueryResult_GetResultCode() returns FP_QUERY_RESULT_CODE_PROGRESS or FP_QUERY_RESULT_CODE_INCOMPLETE, we just delay for the FP_OPTION_RETRYSLEEP value.

Our issue is that we get FP_QUERY_RESULT_CODE_END, before we get all the documents that are on the device returned to us.

We are able to read these objects successfully using the clip_id, however, we need to be able to get them with the query command..

We actually have a bad node, and our query will fail, if we reset the start time to the last returned,

FPQueryExpression_SetStartTime (expRef, nt_stamp); If we do this reset for status of FP_QUERY_RESULT_CODE_INCOMPLETE.

/* nt_stamp is the value from last FPQueryResult_GetTimeStamp() after previous query stat FP_QUERY_REULT_CODE_OK */