svnno****@sourc*****
svnno****@sourc*****
2008年 6月 18日 (水) 17:31:23 JST
Revision: 152 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=tritonn&view=rev&rev=152 Author: mir Date: 2008-06-18 17:31:23 +0900 (Wed, 18 Jun 2008) Log Message: ----------- sen_ctx open and close Modified Paths: -------------- trunk/src/ha_tritonn.cc -------------- next part -------------- Modified: trunk/src/ha_tritonn.cc =================================================================== --- trunk/src/ha_tritonn.cc 2008-06-18 08:22:22 UTC (rev 151) +++ trunk/src/ha_tritonn.cc 2008-06-18 08:31:23 UTC (rev 152) @@ -268,7 +268,7 @@ DBUG_RETURN(HA_ERR_OUT_OF_MEM); thr_lock_data_init(&share->lock,&lock,NULL); - + ctx = sen_ctx_open(db,SEN_CTX_USEQL); DBUG_RETURN(0); } @@ -277,6 +277,7 @@ { DBUG_ENTER("ha_tritonn::close"); DBTN; + sen_ctx_close(ctx); DBUG_RETURN(free_share(share)); } @@ -338,7 +339,9 @@ if (!db) { db = sen_db_create(buf,0,sen_enc_utf8); } + ctx = sen_ctx_open(db,SEN_CTX_USEQL); + sen_ctx_close(ctx); DBUG_RETURN(0); }