int beginTreeTimestampedSegment(void *dbid, int nid, void *dataDsc) { struct descriptor_xd *dataXd = (struct descriptor_xd *)dataDsc; int status; status = _TreeBeginTimestampedSegment(dbid, nid, (struct descriptor_a *)dataXd->pointer, -1); freeDsc(dataXd); return status; }
int beginTreeTimestampedSegment(void *dbid, int nid, void *dataDsc, int isCached, int cachePolicy) { struct descriptor_xd *dataXd = (struct descriptor_xd *)dataDsc; int status; if(isCached) status = _RTreeBeginTimestampedSegment(dbid, nid, (struct descriptor_a *)dataXd->pointer, -1, cachePolicy); else status = _TreeBeginTimestampedSegment(dbid, nid, (struct descriptor_a *)dataXd->pointer, -1); freeDsc(dataXd); return status; }