亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产欧美日韩不卡| 国产在线麻豆精品观看| 首页亚洲欧美制服丝腿| 国产成人8x视频一区二区| 欧美日韩国产另类一区| 国产日韩亚洲欧美综合| 免费高清不卡av| 91国产精品成人| 亚洲欧洲成人精品av97| 国产精品亚洲第一区在线暖暖韩国| 在线观看日韩精品| 日韩一区在线看| 国产伦精一区二区三区| 欧美一级xxx| 亚洲主播在线观看| 色欧美乱欧美15图片| 国产精品热久久久久夜色精品三区| 青青草国产精品亚洲专区无| 欧美午夜一区二区| 亚洲嫩草精品久久| heyzo一本久久综合| 中文字幕欧美国产| 懂色一区二区三区免费观看 | 免费高清在线视频一区·| 91猫先生在线| 亚洲激情网站免费观看| 成人性色生活片| 国产精品视频在线看| 粉嫩13p一区二区三区| 国产欧美综合色| 波多野结衣一区二区三区 | 亚洲日本丝袜连裤袜办公室| 成人国产亚洲欧美成人综合网| 久久人人爽爽爽人久久久| 激情小说亚洲一区| 久久精品水蜜桃av综合天堂| 国产精品中文字幕一区二区三区| 久久精品夜色噜噜亚洲a∨| 国产大片一区二区| 亚洲人快播电影网| 欧美三级电影网站| 美女免费视频一区二区| 欧美精品一区二区久久久| 国产精品一区二区三区四区| 国产喷白浆一区二区三区| 99视频一区二区三区| 一区二区久久久久久| 欧美日韩aaa| 韩国av一区二区三区在线观看| 久久精品综合网| 91蜜桃免费观看视频| 午夜久久久久久| 精品久久人人做人人爽| 99综合电影在线视频| 亚洲高清在线视频| 久久综合色天天久久综合图片| 国产91精品在线观看| 亚洲精品ww久久久久久p站| 欧美日韩第一区日日骚| 国产一区91精品张津瑜| 亚洲摸摸操操av| 日韩视频在线永久播放| 成人一区二区三区视频在线观看 | 亚洲精品一区在线观看| 97精品久久久午夜一区二区三区| 亚洲午夜三级在线| 久久亚洲春色中文字幕久久久| 91在线精品一区二区| 日本一不卡视频| 中文字幕制服丝袜成人av| 欧美丝袜丝nylons| 国产精品一区二区男女羞羞无遮挡 | 欧美色国产精品| 国内精品视频一区二区三区八戒| 成人欧美一区二区三区小说| 欧美激情综合五月色丁香 | ...av二区三区久久精品| 欧美精品精品一区| www.成人网.com| 麻豆国产精品一区二区三区| 18成人在线观看| 精品国产乱码久久久久久1区2区| 色综合咪咪久久| 国产一区二区免费在线| 香蕉乱码成人久久天堂爱免费| 国产欧美久久久精品影院| 欧美一区二区在线免费播放 | 精品国产青草久久久久福利| 欧洲精品在线观看| 成人免费va视频| 韩国一区二区视频| 蜜桃视频在线观看一区二区| 一区二区三区在线免费播放| 国产精品久久精品日日| 国产午夜精品久久久久久免费视| 欧美一区二区三区啪啪| 欧美性三三影院| 色天使久久综合网天天| 99国产一区二区三精品乱码| 国产精品一区在线观看你懂的| 另类小说色综合网站| 日本午夜精品视频在线观看| 亚洲综合激情另类小说区| 亚洲欧洲综合另类| 国产精品萝li| 综合中文字幕亚洲| 中文字幕日韩av资源站| 中文无字幕一区二区三区 | 国产主播一区二区三区| 日本人妖一区二区| 日韩 欧美一区二区三区| 一区二区久久久久久| 夜夜爽夜夜爽精品视频| 亚洲日本va午夜在线影院| 亚洲丝袜制服诱惑| 亚洲日本青草视频在线怡红院 | 国产婷婷色一区二区三区在线| 精品区一区二区| 久久影视一区二区| 精品国产一区二区精华| 亚洲另类在线一区| 亚洲精品菠萝久久久久久久| 亚洲综合色成人| 亚洲 欧美综合在线网络| 视频一区在线播放| 蜜臀av性久久久久蜜臀aⅴ四虎 | 粉嫩aⅴ一区二区三区四区五区 | 国内精品伊人久久久久av一坑| 国产一区二区导航在线播放| 成人免费看片app下载| 91视频xxxx| 欧美日韩视频专区在线播放| 欧美日韩电影在线| 2024国产精品| 中文字幕av不卡| 一区二区久久久久久| 婷婷久久综合九色国产成人| 久久精工是国产品牌吗| 国产成人亚洲精品青草天美| 99精品视频免费在线观看| 欧美主播一区二区三区美女| 欧美一区日韩一区| 欧美激情一区二区三区蜜桃视频 | 99久久国产综合色|国产精品| 在线观看欧美日本| 精品欧美一区二区在线观看| 国产日韩欧美制服另类| 午夜免费久久看| 国产精品一区在线观看你懂的| 91麻豆国产精品久久| 欧美一级片在线观看| 国产精品看片你懂得| 午夜精品久久久久久久久久| 久久99精品国产麻豆不卡| aa级大片欧美| 精品国产成人系列| 一区二区三区加勒比av| 国产高清成人在线| 宅男在线国产精品| 国产精品久久福利| 精品一区二区三区免费| 色网综合在线观看| 国产午夜亚洲精品午夜鲁丝片| 夜夜精品视频一区二区| 国产99久久久国产精品| 日韩视频一区二区| 亚洲最大的成人av| 高清不卡一二三区| 欧美一区二区福利在线| 亚洲综合免费观看高清完整版| 国产福利一区在线| 精品久久久影院| 亚洲成人福利片| 91视频免费播放| 国产拍揄自揄精品视频麻豆| 免费观看日韩av| 欧美日韩精品欧美日韩精品一 | 国产精品久久看| 国产美女视频91| 日韩一级视频免费观看在线| 亚洲在线观看免费视频| 91同城在线观看| 中文字幕欧美国产| 国产精品一二三| 久久亚洲影视婷婷| 久久99精品久久久久| 91精品国产综合久久精品性色 | 亚洲少妇30p| eeuss鲁片一区二区三区在线看| 亚洲精品一区二区三区影院| 另类调教123区| 日韩欧美视频一区| 日韩高清一级片| 日韩视频在线观看一区二区| 视频精品一区二区| 日韩一区二区在线观看| 天天做天天摸天天爽国产一区| 欧美视频在线观看一区二区| 亚洲国产一区视频| 精品1区2区3区|