示例#1
0
 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;
}
示例#2
0
 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;
}