int putTreeData(void *dbid, int nid, void *data) { struct descriptor_xd *xdPtr; int status; xdPtr = (struct descriptor_xd *)convertDataToDsc(data); status = _TreePutRecord(dbid, nid, (struct descriptor *)xdPtr, 0); freeDsc(xdPtr); return status; }
int putTreeData(void *dbid, int nid, void *data, int isCached) { struct descriptor_xd *xdPtr; int status; xdPtr = (struct descriptor_xd *)convertDataToDsc(data); if(isCached) status = _RTreePutRecord(dbid, nid, (struct descriptor *)xdPtr, MDS_WRITE_BACK); else status = _TreePutRecord(dbid, nid, (struct descriptor *)xdPtr, 0); freeDsc(xdPtr); return status; }