亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? db_server_cxxproc.cpp

?? MySQL數據庫開發源碼 值得一看哦
?? CPP
?? 第 1 頁 / 共 4 頁
字號:
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2001-2002 *      Sleepycat Software.  All rights reserved. */#include "db_config.h"#ifdef HAVE_RPC#ifndef lintstatic const char revid[] = "$Id: db_server_cxxproc.cpp,v 1.12 2002/08/09 01:56:08 bostic Exp $";#endif /* not lint */#ifndef NO_SYSTEM_INCLUDES#include <sys/types.h>#include <rpc/rpc.h>#include <string.h>#endif#include "dbinc_auto/db_server.h"#include "db_int.h"#include "db_cxx.h"extern "C" {#include "dbinc/db_server_int.h"#include "dbinc_auto/rpc_server_ext.h"}/* BEGIN __env_cachesize_proc */extern "C" void__env_cachesize_proc(	long dbenvcl_id,	u_int32_t gbytes,	u_int32_t bytes,	u_int32_t ncache,	__env_cachesize_reply *replyp)/* END __env_cachesize_proc */{	DbEnv *dbenv;	ct_entry *dbenv_ctp;	int ret;	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, CT_ENV);	dbenv = (DbEnv *)dbenv_ctp->ct_anyp;	ret = dbenv->set_cachesize(gbytes, bytes, ncache);	replyp->status = ret;	return;}/* BEGIN __env_close_proc */extern "C" void__env_close_proc(	long dbenvcl_id,	u_int32_t flags,	__env_close_reply *replyp)/* END __env_close_proc */{	ct_entry *dbenv_ctp;	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, CT_ENV);	replyp->status = __dbenv_close_int(dbenvcl_id, flags, 0);	return;}/* BEGIN __env_create_proc */extern "C" void__env_create_proc(	u_int32_t timeout,	__env_create_reply *replyp)/* END __env_create_proc */{	DbEnv *dbenv;	ct_entry *ctp;	ctp = new_ct_ent(&replyp->status);	if (ctp == NULL)		return;	dbenv = new DbEnv(DB_CXX_NO_EXCEPTIONS);	ctp->ct_envp = dbenv;	ctp->ct_type = CT_ENV;	ctp->ct_parent = NULL;	ctp->ct_envparent = ctp;	__dbsrv_settimeout(ctp, timeout);	__dbsrv_active(ctp);	replyp->envcl_id = ctp->ct_id;	replyp->status = 0;	return;}/* BEGIN __env_dbremove_proc */extern "C" void__env_dbremove_proc(	long dbenvcl_id,	long txnpcl_id,	char *name,	char *subdb,	u_int32_t flags,	__env_dbremove_reply *replyp)/* END __env_dbremove_proc */{	int ret;	DbEnv *dbenv;	DbTxn *txnp;	ct_entry *dbenv_ctp, *txnp_ctp;	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, CT_ENV);	dbenv = (DbEnv *)dbenv_ctp->ct_anyp;	if (txnpcl_id != 0) {		ACTIVATE_CTP(txnp_ctp, txnpcl_id, CT_TXN);		txnp = (DbTxn *)txnp_ctp->ct_anyp;	} else		txnp = NULL;	ret = dbenv->dbremove(txnp, name, subdb, flags);	replyp->status = ret;	return;}/* BEGIN __env_dbrename_proc */void__env_dbrename_proc(	long dbenvcl_id,	long txnpcl_id,	char *name,	char *subdb,	char *newname,	u_int32_t flags,	__env_dbrename_reply *replyp)/* END __env_dbrename_proc */{	int ret;	DbEnv *dbenv;	DbTxn *txnp;	ct_entry *dbenv_ctp, *txnp_ctp;	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, CT_ENV);	dbenv = (DbEnv *)dbenv_ctp->ct_anyp;	if (txnpcl_id != 0) {		ACTIVATE_CTP(txnp_ctp, txnpcl_id, CT_TXN);		txnp = (DbTxn *)txnp_ctp->ct_anyp;	} else		txnp = NULL;	ret = dbenv->dbrename(txnp, name, subdb, newname, flags);	replyp->status = ret;	return;}/* BEGIN __env_encrypt_proc */extern "C" void__env_encrypt_proc(	long dbenvcl_id,	char *passwd,	u_int32_t flags,	__env_encrypt_reply *replyp)/* END __env_encrypt_proc */{	DbEnv *dbenv;	ct_entry *dbenv_ctp;	int ret;	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, CT_ENV);	dbenv = (DbEnv *)dbenv_ctp->ct_anyp;	ret = dbenv->set_encrypt(passwd, flags);	replyp->status = ret;	return;}/* BEGIN __env_flags_proc */extern "C" void__env_flags_proc(	long dbenvcl_id,	u_int32_t flags,	u_int32_t onoff,	__env_flags_reply *replyp)/* END __env_flags_proc */{	DbEnv *dbenv;	ct_entry *dbenv_ctp;	int ret;	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, CT_ENV);	dbenv = (DbEnv *)dbenv_ctp->ct_anyp;	ret = dbenv->set_flags(flags, onoff);	if (onoff)		dbenv_ctp->ct_envdp.onflags = flags;	else		dbenv_ctp->ct_envdp.offflags = flags;	replyp->status = ret;	return;}/* BEGIN __env_open_proc */extern "C" void__env_open_proc(	long dbenvcl_id,	char *home,	u_int32_t flags,	u_int32_t mode,	__env_open_reply *replyp)/* END __env_open_proc */{	DbEnv *dbenv;	ct_entry *dbenv_ctp, *new_ctp;	u_int32_t newflags, shareflags;	int ret;	home_entry *fullhome;	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, CT_ENV);	dbenv = (DbEnv *)dbenv_ctp->ct_anyp;	fullhome = get_home(home);	if (fullhome == NULL) {		ret = DB_NOSERVER_HOME;		goto out;	}	/*	 * If they are using locking do deadlock detection for them,	 * internally.	 */	if ((flags & DB_INIT_LOCK) &&	    (ret = dbenv->set_lk_detect(DB_LOCK_DEFAULT)) != 0)		goto out;	if (__dbsrv_verbose) {		dbenv->set_errfile(stderr);		dbenv->set_errpfx(fullhome->home);	}	/*	 * Mask off flags we ignore	 */	newflags = (flags & ~DB_SERVER_FLAGMASK);	shareflags = (newflags & DB_SERVER_ENVFLAGS);	/*	 * Check now whether we can share a handle for this env.	 */	replyp->envcl_id = dbenvcl_id;	if ((new_ctp = __dbsrv_shareenv(dbenv_ctp, fullhome, shareflags))	    != NULL) {		/*		 * We can share, clean up old  ID, set new one.		 */		if (__dbsrv_verbose)			printf("Sharing env ID %ld\n", new_ctp->ct_id);		replyp->envcl_id = new_ctp->ct_id;		ret = __dbenv_close_int(dbenvcl_id, 0, 0);	} else {		ret = dbenv->open(fullhome->home, newflags, mode);		dbenv_ctp->ct_envdp.home = fullhome;		dbenv_ctp->ct_envdp.envflags = shareflags;	}out:	replyp->status = ret;	return;}/* BEGIN __env_remove_proc */extern "C" void__env_remove_proc(	long dbenvcl_id,	char *home,	u_int32_t flags,	__env_remove_reply *replyp)/* END __env_remove_proc */{	DbEnv *dbenv;	ct_entry *dbenv_ctp;	int ret;	home_entry *fullhome;	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, CT_ENV);	dbenv = (DbEnv *)dbenv_ctp->ct_anyp;	fullhome = get_home(home);	if (fullhome == NULL) {		replyp->status = DB_NOSERVER_HOME;		return;	}	ret = dbenv->remove(fullhome->home, flags);	__dbdel_ctp(dbenv_ctp);	replyp->status = ret;	return;}/* BEGIN __txn_abort_proc */extern "C" void__txn_abort_proc(	long txnpcl_id,	__txn_abort_reply *replyp)/* END __txn_abort_proc */{	DbTxn *txnp;	ct_entry *txnp_ctp;	int ret;	ACTIVATE_CTP(txnp_ctp, txnpcl_id, CT_TXN);	txnp = (DbTxn *)txnp_ctp->ct_anyp;	ret = txnp->abort();	__dbdel_ctp(txnp_ctp);	replyp->status = ret;	return;}/* BEGIN __txn_begin_proc */extern "C" void__txn_begin_proc(	long dbenvcl_id,	long parentcl_id,	u_int32_t flags,	__txn_begin_reply *replyp)/* END __txn_begin_proc */{	DbEnv *dbenv;	DbTxn *parent, *txnp;	ct_entry *ctp, *dbenv_ctp, *parent_ctp;	int ret;	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, CT_ENV);	dbenv = (DbEnv *)dbenv_ctp->ct_anyp;	parent_ctp = NULL;	ctp = new_ct_ent(&replyp->status);	if (ctp == NULL)		return;	if (parentcl_id != 0) {		ACTIVATE_CTP(parent_ctp, parentcl_id, CT_TXN);		parent = (DbTxn *)parent_ctp->ct_anyp;		ctp->ct_activep = parent_ctp->ct_activep;	} else		parent = NULL;	ret = dbenv->txn_begin(parent, &txnp, flags);	if (ret == 0) {		ctp->ct_txnp = txnp;		ctp->ct_type = CT_TXN;		ctp->ct_parent = parent_ctp;		ctp->ct_envparent = dbenv_ctp;		replyp->txnidcl_id = ctp->ct_id;		__dbsrv_settimeout(ctp, dbenv_ctp->ct_timeout);		__dbsrv_active(ctp);	} else		__dbclear_ctp(ctp);	replyp->status = ret;	return;}/* BEGIN __txn_commit_proc */extern "C" void__txn_commit_proc(	long txnpcl_id,	u_int32_t flags,	__txn_commit_reply *replyp)/* END __txn_commit_proc */{	DbTxn *txnp;	ct_entry *txnp_ctp;	int ret;	ACTIVATE_CTP(txnp_ctp, txnpcl_id, CT_TXN);	txnp = (DbTxn *)txnp_ctp->ct_anyp;	ret = txnp->commit(flags);	__dbdel_ctp(txnp_ctp);	replyp->status = ret;	return;}/* BEGIN __txn_discard_proc */extern "C" void__txn_discard_proc(	long txnpcl_id,	u_int32_t flags,	__txn_discard_reply *replyp)/* END __txn_discard_proc */{	DbTxn *txnp;	ct_entry *txnp_ctp;	int ret;	ACTIVATE_CTP(txnp_ctp, txnpcl_id, CT_TXN);	txnp = (DbTxn *)txnp_ctp->ct_anyp;	ret = txnp->discard(flags);	__dbdel_ctp(txnp_ctp);	replyp->status = ret;	return;}/* BEGIN __txn_prepare_proc */extern "C" void__txn_prepare_proc(	long txnpcl_id,	u_int8_t *gid,	__txn_prepare_reply *replyp)/* END __txn_prepare_proc */{	DbTxn *txnp;	ct_entry *txnp_ctp;	int ret;	ACTIVATE_CTP(txnp_ctp, txnpcl_id, CT_TXN);	txnp = (DbTxn *)txnp_ctp->ct_anyp;	ret = txnp->prepare(gid);	replyp->status = ret;	return;}/* BEGIN __txn_recover_proc */extern "C" void__txn_recover_proc(	long dbenvcl_id,	u_int32_t count,	u_int32_t flags,	__txn_recover_reply *replyp,	int * freep)/* END __txn_recover_proc */{	DbEnv *dbenv;	DbPreplist *dbprep, *p;	ct_entry *dbenv_ctp, *ctp;	long erri, i, retcount;	u_int32_t *txnidp;	int ret;	char *gid;	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, CT_ENV);	dbenv = (DbEnv *)dbenv_ctp->ct_anyp;	*freep = 0;	if ((ret =	    __os_malloc(dbenv->get_DB_ENV(), count * sizeof(DbPreplist), &dbprep)) != 0)		goto out;	if ((ret =	    dbenv->txn_recover(dbprep, count, &retcount, flags)) != 0)		goto out;	/*	 * If there is nothing, success, but it's easy.	 */	replyp->retcount = retcount; // TODO: fix C++ txn_recover	if (retcount == 0) {		replyp->txn.txn_val = NULL;		replyp->txn.txn_len = 0;		replyp->gid.gid_val = NULL;		replyp->gid.gid_len = 0;	}	/*	 * We have our txn list.  Now we need to allocate the space for	 * the txn ID array and the GID array and set them up.	 */	if ((ret = __os_calloc(dbenv->get_DB_ENV(), retcount, sizeof(u_int32_t),	    &replyp->txn.txn_val)) != 0)		goto out;	replyp->txn.txn_len = retcount * sizeof(u_int32_t);	if ((ret = __os_calloc(dbenv->get_DB_ENV(), retcount, DB_XIDDATASIZE,	    &replyp->gid.gid_val)) != 0) {		__os_free(dbenv->get_DB_ENV(), replyp->txn.txn_val);		goto out;	}	replyp->gid.gid_len = retcount * DB_XIDDATASIZE;	/*	 * Now walk through our results, creating parallel arrays	 * to send back.  For each entry we need to create a new	 * txn ctp and then fill in the array info.	 */	i = 0;	p = dbprep;	gid = replyp->gid.gid_val;	txnidp = replyp->txn.txn_val;	while (i++ < retcount) {		ctp = new_ct_ent(&ret);		if (ret != 0) {			i--;			goto out2;		}		ctp->ct_txnp = p->txn;		ctp->ct_type = CT_TXN;		ctp->ct_parent = NULL;		ctp->ct_envparent = dbenv_ctp;		__dbsrv_settimeout(ctp, dbenv_ctp->ct_timeout);		__dbsrv_active(ctp);		*txnidp = ctp->ct_id;		memcpy(gid, p->gid, DB_XIDDATASIZE);		p++;		txnidp++;		gid += DB_XIDDATASIZE;	}	/*	 * If we get here, we have success and we have to set freep	 * so it'll get properly freed next time.	 */	*freep = 1;out:	if (dbprep != NULL)		__os_free(dbenv->get_DB_ENV(), dbprep);	replyp->status = ret;	return;out2:	/*	 * We had an error in the middle of creating our new txn	 * ct entries.  We have to unwind all that we have done.  Ugh.	 */	for (txnidp = replyp->txn.txn_val, erri = 0;	    erri < i; erri++, txnidp++) {		ctp = get_tableent(*txnidp);		__dbclear_ctp(ctp);	}	__os_free(dbenv->get_DB_ENV(), replyp->txn.txn_val);	__os_free(dbenv->get_DB_ENV(), replyp->gid.gid_val);	__os_free(dbenv->get_DB_ENV(), dbprep);	replyp->status = ret;	return;}/* BEGIN __db_bt_maxkey_proc */extern "C" void__db_bt_maxkey_proc(	long dbpcl_id,	u_int32_t maxkey,	__db_bt_maxkey_reply *replyp)/* END __db_bt_maxkey_proc */{	Db *dbp;	ct_entry *dbp_ctp;	int ret;	ACTIVATE_CTP(dbp_ctp, dbpcl_id, CT_DB);	dbp = (Db *)dbp_ctp->ct_anyp;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区二区三区在线播放| 亚洲精品成人悠悠色影视| 国产精品乱人伦一区二区| 亚洲成a人片在线观看中文| 国产精品亚洲人在线观看| 欧美日韩一区在线观看| 久久久国产一区二区三区四区小说 | 久久成人久久鬼色| 91麻豆国产香蕉久久精品| 精品久久久久久无| 一区二区三区免费| eeuss鲁片一区二区三区| 日韩一卡二卡三卡四卡| 一区二区三区av电影| 成人av高清在线| 久久久久亚洲蜜桃| 久久精品噜噜噜成人av农村| 欧美日韩精品欧美日韩精品一综合| 国产精品你懂的在线欣赏| 经典一区二区三区| 欧美一级高清大全免费观看| 亚洲午夜av在线| 91福利在线看| 亚洲男人的天堂网| 99精品视频在线播放观看| 久久久不卡网国产精品二区 | 国产精品久久久久桃色tv| 韩国v欧美v日本v亚洲v| 日韩午夜激情免费电影| 亚洲国产wwwccc36天堂| 欧美午夜不卡视频| 一区二区欧美视频| 在线观看一区二区视频| 亚洲三级免费观看| 一本到三区不卡视频| 亚洲欧美经典视频| 一本久久a久久精品亚洲| 亚洲欧美日韩中文字幕一区二区三区| 成人免费三级在线| 亚洲欧洲日韩综合一区二区| 91老司机福利 在线| 亚洲免费观看视频| 精品视频全国免费看| 亚洲成a人在线观看| 欧美一区二区三区在线观看视频| 日韩黄色免费网站| 精品国产成人在线影院 | 日韩欧美一区在线观看| 麻豆视频观看网址久久| 久久久久久日产精品| 成人综合婷婷国产精品久久蜜臀| 国产精品国产三级国产a| 99re免费视频精品全部| 亚洲综合小说图片| 日韩精品一区在线| 国产一区二区三区久久悠悠色av| 国产人成一区二区三区影院| 91免费在线看| 丝袜国产日韩另类美女| 精品播放一区二区| 91小视频在线| 日日夜夜免费精品| 国产欧美视频一区二区三区| 色婷婷国产精品综合在线观看| 亚洲成人先锋电影| 久久先锋影音av鲁色资源| 99久久精品一区| 视频一区二区中文字幕| 久久精品亚洲国产奇米99| 一本色道久久综合亚洲精品按摩| 日本亚洲免费观看| 国产精品激情偷乱一区二区∴| 欧美三级欧美一级| 国产精品亚洲а∨天堂免在线| 亚洲一区二区三区在线看| 亚洲特级片在线| 555www色欧美视频| 国产盗摄女厕一区二区三区| 亚洲五月六月丁香激情| 国产亚洲综合av| 欧美男人的天堂一二区| 国产91精品露脸国语对白| 午夜日韩在线电影| 亚洲国产高清aⅴ视频| 欧美日韩国产123区| 成人做爰69片免费看网站| 蜜臀av亚洲一区中文字幕| 综合色天天鬼久久鬼色| 久久久综合精品| 欧美日韩五月天| 99精品在线免费| 国产精品一区在线观看你懂的| 亚洲成人免费影院| 亚洲欧洲综合另类| 国产欧美一区在线| 精品久久免费看| 91精品免费在线| 欧美日韩亚洲国产综合| 91蜜桃网址入口| 不卡视频在线看| 国产美女娇喘av呻吟久久| 免费观看一级特黄欧美大片| 亚洲一区二区三区四区的| 中文字幕永久在线不卡| 久久久综合视频| 久久久久久免费毛片精品| 欧美成人在线直播| 91精品久久久久久久91蜜桃| 欧美日韩视频第一区| 在线免费观看日本一区| 91婷婷韩国欧美一区二区| 国产成人免费视频精品含羞草妖精 | 国产尤物一区二区在线| 老司机免费视频一区二区三区| 日韩在线观看一区二区| 日韩国产精品久久久久久亚洲| 免费成人av资源网| 免费不卡在线视频| 麻豆精品国产传媒mv男同 | 亚洲在线观看免费| 一区二区三区不卡视频| 亚洲综合成人网| 亚洲国产日韩一级| 视频在线在亚洲| 久久精品国产99国产| 久久99精品国产麻豆婷婷洗澡| 韩国女主播一区二区三区| 国产伦精品一区二区三区视频青涩| 精品亚洲porn| 成人午夜av影视| 色www精品视频在线观看| 91福利视频在线| 91精品国模一区二区三区| 欧美成人综合网站| 国产精品色在线观看| 亚洲视频在线一区观看| 亚洲va欧美va天堂v国产综合| 日韩不卡手机在线v区| 激情欧美一区二区| 成人精品视频网站| 欧美三级乱人伦电影| 日韩欧美一区二区不卡| 国产女人18毛片水真多成人如厕 | 岛国精品在线播放| 91麻豆国产精品久久| 欧美高清视频不卡网| 久久久久国产精品厨房| 亚洲精品国产成人久久av盗摄| 视频一区免费在线观看| 粉嫩av亚洲一区二区图片| 色欧美日韩亚洲| 精品福利一二区| 亚洲精品一二三| 久久不见久久见免费视频7| 不卡视频在线看| 欧美一区二区黄| 亚洲欧美在线高清| 日本伊人午夜精品| av亚洲精华国产精华精| 日韩一区二区三区免费看 | 成人av高清在线| 日韩一区国产二区欧美三区| 国产精品丝袜在线| 日本欧美肥老太交大片| www.久久精品| 久久亚洲影视婷婷| 亚洲电影中文字幕在线观看| 国产成人精品影视| 在线电影一区二区三区| 最新欧美精品一区二区三区| 国产成a人亚洲| 欧美一区二区三区四区在线观看| 国产精品国产三级国产有无不卡 | 国产精品18久久久久久久久久久久| 欧美亚日韩国产aⅴ精品中极品| 久久精品视频网| 石原莉奈在线亚洲三区| 91视频.com| 久久久久久久综合狠狠综合| 亚洲18影院在线观看| 色香色香欲天天天影视综合网| 精品999久久久| 麻豆精品国产传媒mv男同| 欧美久久一区二区| 亚洲女厕所小便bbb| 国产91在线观看| 久久久久国产精品麻豆ai换脸| 全国精品久久少妇| 欧美日韩中文另类| 亚洲狠狠丁香婷婷综合久久久| 成人性生交大合| 久久久久亚洲综合| 国产一区二三区| 精品福利一区二区三区| 激情文学综合丁香| 精品久久久久久久久久久久久久久| 肉肉av福利一精品导航| 欧美精品第1页| 日日夜夜一区二区| 日韩午夜av电影|