亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲激情自拍视频| 日韩精品一二三四| 欧美日韩免费视频| 国产福利91精品一区| 亚洲电影你懂得| 欧美韩国一区二区| 精品国产免费一区二区三区四区| 色美美综合视频| 国产91在线|亚洲| 美女脱光内衣内裤视频久久网站 | 三级影片在线观看欧美日韩一区二区| 久久久久久久av麻豆果冻| 91.xcao| 97久久久精品综合88久久| 韩国三级电影一区二区| 日韩成人午夜电影| 夜夜嗨av一区二区三区网页| 国产精品蜜臀在线观看| 26uuu国产电影一区二区| 91麻豆精品国产91久久久| 色哟哟国产精品| www.亚洲精品| 成人午夜看片网址| 国产另类ts人妖一区二区| 蜜桃精品在线观看| 丝袜美腿一区二区三区| 亚洲第一狼人社区| 亚洲香蕉伊在人在线观| 亚洲精品高清在线观看| 日韩毛片高清在线播放| 国产精品国产三级国产有无不卡| 国产情人综合久久777777| 久久一区二区三区四区| 久久久亚洲午夜电影| 欧美精品一区二区三| 日韩免费高清av| 日韩欧美三级在线| 精品国产电影一区二区| 久久综合精品国产一区二区三区| 欧美变态tickling挠脚心| 欧美岛国在线观看| 精品国产1区二区| 久久久久国产一区二区三区四区 | 国产一区二区三区视频在线播放 | 在线观看成人免费视频| 在线影院国内精品| 色婷婷久久一区二区三区麻豆| 91浏览器入口在线观看| 欧美性猛交一区二区三区精品| 在线免费观看视频一区| 欧美日韩大陆在线| 91精品免费在线| 2023国产精品自拍| 欧美经典一区二区三区| 中文字幕一区av| 一区二区三区在线高清| 婷婷六月综合网| 久久国产精品免费| 成人免费视频app| 色网站国产精品| 欧美裸体一区二区三区| 欧美一区二区三级| 国产亚洲成av人在线观看导航| 国产精品久久毛片| 亚洲午夜免费福利视频| 麻豆精品一区二区av白丝在线| 国产乱码字幕精品高清av | 欧美精品一区二区不卡| 国产精品丝袜91| 亚洲国产精品人人做人人爽| 奇米精品一区二区三区四区 | 亚洲色图19p| 午夜欧美视频在线观看| 国产在线视频不卡二| 91偷拍与自偷拍精品| 91精品国产综合久久久蜜臀图片| 久久综合五月天婷婷伊人| 亚洲同性同志一二三专区| 视频一区二区不卡| 成人动漫在线一区| 在线播放91灌醉迷j高跟美女| 久久精品亚洲精品国产欧美| 亚洲综合一区在线| 国产精品一级黄| 欧美色综合久久| 国产日韩欧美综合在线| 亚洲国产日韩a在线播放| 国产乱色国产精品免费视频| 欧美自拍丝袜亚洲| 国产欧美中文在线| 日韩av电影免费观看高清完整版在线观看 | 一区二区三区美女| 国产剧情一区二区三区| 欧美日韩一区二区不卡| 国产欧美综合色| 麻豆精品久久精品色综合| 色婷婷激情一区二区三区| 亚洲精品在线观| 亚洲成av人片一区二区梦乃| 成熟亚洲日本毛茸茸凸凹| 欧美一级夜夜爽| 亚洲精品菠萝久久久久久久| 国产乱子伦一区二区三区国色天香| 欧美人狂配大交3d怪物一区| 国产精品久久久久久久久动漫 | 亚洲精品老司机| 国产成人无遮挡在线视频| 日韩欧美一区二区视频| 亚洲最大成人网4388xx| 成人aa视频在线观看| 日韩视频免费观看高清完整版在线观看 | 欧美精品久久一区| 一区二区在线观看免费| 波多野结衣精品在线| 国产午夜亚洲精品不卡| 精品一区二区三区免费毛片爱| 欧美久久高跟鞋激| 一区二区三区欧美日| 99精品黄色片免费大全| 中文字幕欧美区| 国产又黄又大久久| 欧美白人最猛性xxxxx69交| 五月激情综合色| 欧美日韩久久一区| 亚洲一区视频在线| 日本电影亚洲天堂一区| 亚洲天堂免费在线观看视频| www.色综合.com| 国产精品国产精品国产专区不片| 丁香婷婷深情五月亚洲| 国产欧美日韩一区二区三区在线观看| 国产在线视频精品一区| 久久久综合精品| 国产河南妇女毛片精品久久久| 久久久亚洲精华液精华液精华液| 韩国v欧美v日本v亚洲v| 国产亚洲人成网站| 成人午夜精品在线| 中文字幕中文在线不卡住| 99国产精品久久久久久久久久| 中文字幕在线观看不卡| 97精品国产露脸对白| 一区二区三区在线观看国产 | 国产女人18水真多18精品一级做| 国产一区二区三区四区在线观看| 久久精品网站免费观看| 国产成a人亚洲| 亚洲视频综合在线| 91福利资源站| 天天操天天干天天综合网| 欧美一卡二卡三卡| 国产一区二区伦理| 国产精品麻豆视频| 日本道精品一区二区三区| 午夜精品久久久久久久久| 91精品国产高清一区二区三区 | 午夜精品影院在线观看| 日韩一级片网址| 国产激情一区二区三区桃花岛亚洲| 中文字幕+乱码+中文字幕一区| 99久久精品免费| 亚洲成人激情综合网| 精品久久国产字幕高潮| 盗摄精品av一区二区三区| 一区二区三区影院| 欧美一级理论性理论a| 国产精品一区三区| 一区二区高清视频在线观看| 91麻豆精品国产自产在线观看一区 | 午夜欧美视频在线观看| 久久综合国产精品| 色婷婷亚洲一区二区三区| 日韩精品视频网站| 国产日韩欧美一区二区三区综合 | 欧美日韩精品三区| 精品一区二区免费| 亚洲丝袜美腿综合| 日韩午夜在线播放| 97精品久久久久中文字幕| 免费观看久久久4p| 国产精品动漫网站| 欧美一区2区视频在线观看| 国产成人超碰人人澡人人澡| 亚洲狠狠爱一区二区三区| 久久亚洲二区三区| 欧美日韩国产一区| 成人avav在线| 免费成人美女在线观看| 亚洲女同一区二区| 精品国产人成亚洲区| 欧美日韩在线综合| 成人永久aaa| 看片的网站亚洲| 一区二区在线看| 国产色综合一区| 日韩欧美国产三级| 欧美亚洲一区二区在线观看| 国产91丝袜在线播放0| 热久久一区二区| 亚洲亚洲精品在线观看|