Commit 9fb5cda3 authored by unknown's avatar unknown

disable chmod in bdb scripts - bk doesn't like somebody messing with permissions

delete auto-generated files
remove in-place editing


BitKeeper/deleted/.del-ex_apprec_auto.c~6e4c8882b1f0fe9d:
  Delete: bdb/examples_c/ex_apprec/ex_apprec_auto.c
BitKeeper/deleted/.del-ex_apprec_auto.h~d01f1e472bf1b59f:
  Delete: bdb/examples_c/ex_apprec/ex_apprec_auto.h
BitKeeper/deleted/.del-ex_apprec_template~4157a705d73c1209:
  Delete: bdb/examples_c/ex_apprec/ex_apprec_template
bdb/rpc_server/c/db_server_proc.c.in:
  Rename: bdb/rpc_server/c/db_server_proc.c -> bdb/rpc_server/c/db_server_proc.c.in
BitKeeper/deleted/.del-rpc_defs.in~bfc9820a618d5926:
  Delete: bdb/dbinc_auto/rpc_defs.in
BitKeeper/deleted/.del-db_server.h~1c77cc0d19f3ecf:
  Delete: bdb/dbinc_auto/db_server.h
BitKeeper/deleted/.del-db_server_proc.sed~94a351b3e31c0ad0:
  Delete: bdb/rpc_server/c/db_server_proc.sed
BitKeeper/deleted/.del-db_server_svc.c~66ae3c56737e07ab:
  Delete: bdb/rpc_server/c/db_server_svc.c
BitKeeper/deleted/.del-db_server_xdr.c~518231ed78b9cdcf:
  Delete: bdb/rpc_server/c/db_server_xdr.c
BitKeeper/deleted/.del-gen_db_server.c~51935e227c7c23ac:
  Delete: bdb/rpc_server/c/gen_db_server.c
bdb/dist/RELEASE:
  disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
bdb/dist/s_crypto:
  disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
bdb/dist/s_perm:
  disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
bdb/dist/s_recover:
  disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
bdb/dist/s_rpc:
  NEVER modify files in-place!!!
bdb/dist/s_symlink:
  disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
bdb/dist/s_tags:
  disable chmod in bdb scripts - bk doesn't like somebody messing with permissions
parent 2eb08da9
This diff is collapsed.
/* DO NOT EDIT: automatically built by dist/s_rpc. */
#define DB_RPC_SERVERPROG ((unsigned long)(351457))
#define DB_RPC_SERVERVERS ((unsigned long)(4001))
...@@ -9,3 +9,12 @@ DB_VERSION_UNIQUE_NAME=`printf "_%d%03d" $DB_VERSION_MAJOR $DB_VERSION_MINOR` ...@@ -9,3 +9,12 @@ DB_VERSION_UNIQUE_NAME=`printf "_%d%03d" $DB_VERSION_MAJOR $DB_VERSION_MINOR`
DB_RELEASE_DATE=`date "+%B %e, %Y"` DB_RELEASE_DATE=`date "+%B %e, %Y"`
DB_VERSION_STRING="Sleepycat Software: Berkeley DB $DB_VERSION: ($DB_RELEASE_DATE)" DB_VERSION_STRING="Sleepycat Software: Berkeley DB $DB_VERSION: ($DB_RELEASE_DATE)"
# this file is included by all s_* scripts, so it's the way to apply
# hacks :)
# bitkeeper doesn't like somebody to mess with permissions!
chmod()
{
#echo "chmod $1 $2"
}
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
# Remove crypto from the DB source tree. # Remove crypto from the DB source tree.
. ./RELEASE
d=.. d=..
t=/tmp/__db_a t=/tmp/__db_a
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
d=.. d=..
echo 'Updating Berkeley DB source tree permissions...' echo 'Updating Berkeley DB source tree permissions...'
. ./RELEASE
run() run()
{ {
echo " $1 ($2)" echo " $1 ($2)"
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
# #
# Build the automatically generated logging/recovery files. # Build the automatically generated logging/recovery files.
. ./RELEASE
tmp=/tmp/__db_a tmp=/tmp/__db_a
loglist=/tmp/__db_b loglist=/tmp/__db_b
source=/tmp/__db_c source=/tmp/__db_c
......
...@@ -25,9 +25,6 @@ server_file=../rpc_server/c/gen_db_server.c ...@@ -25,9 +25,6 @@ server_file=../rpc_server/c/gen_db_server.c
stmpl_file=./template/db_server_proc stmpl_file=./template/db_server_proc
xdr_file=../rpc_server/db_server.x xdr_file=../rpc_server/db_server.x
#
# NOTE: We do NOT want to remove proc_file. It is what we apply $sed_file
# to, but we do not want to remove it, it does not get built in place.
rm -f $client_file \ rm -f $client_file \
$ctmpl_file \ $ctmpl_file \
$header_file \ $header_file \
...@@ -92,8 +89,7 @@ ENDOFSEDTEXT ...@@ -92,8 +89,7 @@ ENDOFSEDTEXT
sed -f $t $rpcsvc_file > ${rpcsvc_file}.new sed -f $t $rpcsvc_file > ${rpcsvc_file}.new
mv ${rpcsvc_file}.new $rpcsvc_file mv ${rpcsvc_file}.new $rpcsvc_file
sed -f $sed_file $proc_file > ${proc_file}.new sed -f $sed_file ${proc_file}.in > ${proc_file}
mv ${proc_file}.new $proc_file
# Run rpcgen files through sed to add HAVE_RPC ifdef and appropriate # Run rpcgen files through sed to add HAVE_RPC ifdef and appropriate
# includes. # includes.
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# $Id: s_symlink,v 1.28 2002/08/18 21:15:45 bostic Exp $ # $Id: s_symlink,v 1.28 2002/08/18 21:15:45 bostic Exp $
echo 'Creating Berkeley DB source tree symbolic links...' echo 'Creating Berkeley DB source tree symbolic links...'
. ./RELEASE
build() build()
{ {
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
# #
# Build tags files. # Build tags files.
. ./RELEASE
files="../dbinc/*.h \ files="../dbinc/*.h \
../dbinc/*.in \ ../dbinc/*.in \
../btree/*.[ch] \ ../btree/*.[ch] \
......
/* Do not edit: automatically built by gen_rec.awk. */
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <db.h>
#include "ex_apprec.h"
/*
* PUBLIC: int ex_apprec_mkdir_log __P((DB_ENV *, DB_TXN *, DB_LSN *,
* PUBLIC: u_int32_t, const DBT *));
*/
int
ex_apprec_mkdir_log(dbenv, txnid, ret_lsnp, flags,
dirname)
DB_ENV *dbenv;
DB_TXN *txnid;
DB_LSN *ret_lsnp;
u_int32_t flags;
const DBT *dirname;
{
DBT logrec;
DB_LSN *lsnp, null_lsn;
u_int32_t zero;
u_int32_t npad, rectype, txn_num;
int ret;
u_int8_t *bp;
rectype = DB_ex_apprec_mkdir;
npad = 0;
if (txnid == NULL) {
txn_num = 0;
null_lsn.file = 0;
null_lsn.offset = 0;
lsnp = &null_lsn;
} else {
txn_num = txnid->txnid;
lsnp = &txnid->last_lsn;
}
logrec.size = sizeof(rectype) + sizeof(txn_num) + sizeof(DB_LSN)
+ sizeof(u_int32_t) + (dirname == NULL ? 0 : dirname->size);
if ((logrec.data = malloc(logrec.size)) == NULL)
return (ENOMEM);
if (npad > 0)
memset((u_int8_t *)logrec.data + logrec.size - npad, 0, npad);
bp = logrec.data;
memcpy(bp, &rectype, sizeof(rectype));
bp += sizeof(rectype);
memcpy(bp, &txn_num, sizeof(txn_num));
bp += sizeof(txn_num);
memcpy(bp, lsnp, sizeof(DB_LSN));
bp += sizeof(DB_LSN);
if (dirname == NULL) {
zero = 0;
memcpy(bp, &zero, sizeof(u_int32_t));
bp += sizeof(u_int32_t);
} else {
memcpy(bp, &dirname->size, sizeof(dirname->size));
bp += sizeof(dirname->size);
memcpy(bp, dirname->data, dirname->size);
bp += dirname->size;
}
ret = dbenv->log_put(dbenv,
ret_lsnp, (DBT *)&logrec, flags);
if (txnid != NULL && ret == 0)
txnid->last_lsn = *ret_lsnp;
#ifdef LOG_DIAGNOSTIC
if (ret != 0)
(void)ex_apprec_mkdir_print(dbenv,
(DBT *)&logrec, ret_lsnp, NULL, NULL);
#endif
free(logrec.data);
return (ret);
}
/*
* PUBLIC: int ex_apprec_mkdir_print __P((DB_ENV *, DBT *, DB_LSN *,
* PUBLIC: db_recops, void *));
*/
int
ex_apprec_mkdir_print(dbenv, dbtp, lsnp, notused2, notused3)
DB_ENV *dbenv;
DBT *dbtp;
DB_LSN *lsnp;
db_recops notused2;
void *notused3;
{
ex_apprec_mkdir_args *argp;
u_int32_t i;
int ch;
int ret;
notused2 = DB_TXN_ABORT;
notused3 = NULL;
if ((ret = ex_apprec_mkdir_read(dbenv, dbtp->data, &argp)) != 0)
return (ret);
(void)printf(
"[%lu][%lu]ex_apprec_mkdir: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
(u_long)lsnp->file,
(u_long)lsnp->offset,
(u_long)argp->type,
(u_long)argp->txnid->txnid,
(u_long)argp->prev_lsn.file,
(u_long)argp->prev_lsn.offset);
(void)printf("\tdirname: ");
for (i = 0; i < argp->dirname.size; i++) {
ch = ((u_int8_t *)argp->dirname.data)[i];
printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
}
(void)printf("\n");
(void)printf("\n");
free(argp);
return (0);
}
/*
* PUBLIC: int ex_apprec_mkdir_read __P((DB_ENV *, void *,
* PUBLIC: ex_apprec_mkdir_args **));
*/
int
ex_apprec_mkdir_read(dbenv, recbuf, argpp)
DB_ENV *dbenv;
void *recbuf;
ex_apprec_mkdir_args **argpp;
{
ex_apprec_mkdir_args *argp;
u_int8_t *bp;
/* Keep the compiler quiet. */
dbenv = NULL;
if ((argp = malloc(sizeof(ex_apprec_mkdir_args) + sizeof(DB_TXN))) == NULL)
return (ENOMEM);
argp->txnid = (DB_TXN *)&argp[1];
bp = recbuf;
memcpy(&argp->type, bp, sizeof(argp->type));
bp += sizeof(argp->type);
memcpy(&argp->txnid->txnid, bp, sizeof(argp->txnid->txnid));
bp += sizeof(argp->txnid->txnid);
memcpy(&argp->prev_lsn, bp, sizeof(DB_LSN));
bp += sizeof(DB_LSN);
memset(&argp->dirname, 0, sizeof(argp->dirname));
memcpy(&argp->dirname.size, bp, sizeof(u_int32_t));
bp += sizeof(u_int32_t);
argp->dirname.data = bp;
bp += argp->dirname.size;
*argpp = argp;
return (0);
}
/*
* PUBLIC: int ex_apprec_init_print __P((DB_ENV *, int (***)(DB_ENV *,
* PUBLIC: DBT *, DB_LSN *, db_recops, void *), size_t *));
*/
int
ex_apprec_init_print(dbenv, dtabp, dtabsizep)
DB_ENV *dbenv;
int (***dtabp)__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
size_t *dtabsizep;
{
int __db_add_recovery __P((DB_ENV *,
int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *),
size_t *,
int (*)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), u_int32_t));
int ret;
if ((ret = __db_add_recovery(dbenv, dtabp, dtabsizep,
ex_apprec_mkdir_print, DB_ex_apprec_mkdir)) != 0)
return (ret);
return (0);
}
/* Do not edit: automatically built by gen_rec.awk. */
#ifndef ex_apprec_AUTO_H
#define ex_apprec_AUTO_H
#define DB_ex_apprec_mkdir 10000
typedef struct _ex_apprec_mkdir_args {
u_int32_t type;
DB_TXN *txnid;
DB_LSN prev_lsn;
DBT dirname;
} ex_apprec_mkdir_args;
#endif
#include "db_config.h"
#ifndef NO_SYSTEM_INCLUDES
#include <sys/types.h>
#include <string.h>
#endif
#include "db_int.h"
#include "dbinc/db_page.h"
#include "dbinc/ex_apprec.h"
#include "dbinc/log.h"
/*
* ex_apprec_mkdir_recover --
* Recovery function for mkdir.
*
* PUBLIC: int ex_apprec_mkdir_recover
* PUBLIC: __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
*/
int
ex_apprec_mkdir_recover(dbenv, dbtp, lsnp, op, info)
DB_ENV *dbenv;
DBT *dbtp;
DB_LSN *lsnp;
db_recops op;
void *info;
{
ex_apprec_mkdir_args *argp;
DB *file_dbp;
DBC *dbc;
DB_MPOOLFILE *mpf;
PAGE *pagep;
int cmp_n, cmp_p, modified, ret;
REC_PRINT(ex_apprec_mkdir_print);
REC_INTRO(ex_apprec_mkdir_read, 1);
if ((ret = mpf->get(mpf, &argp->pgno, 0, &pagep)) != 0)
if (DB_REDO(op)) {
if ((ret = mpf->get(mpf,
&argp->pgno, DB_MPOOL_CREATE, &pagep)) != 0)
goto out;
} else {
*lsnp = argp->prev_lsn;
ret = 0;
goto out;
}
modified = 0;
cmp_n = log_compare(lsnp, &LSN(pagep));
/*
* Use this when there is something like "pagelsn" in the argp
* structure. Sometimes, you might need to compare meta-data
* lsn's instead.
*
* cmp_p = log_compare(&LSN(pagep), argp->pagelsn);
*/
if (cmp_p == 0 && DB_REDO(op)) {
/* Need to redo update described. */
modified = 1;
} else if (cmp_n == 0 && !DB_REDO(op)) {
/* Need to undo update described. */
modified = 1;
}
if (ret = mpf->put(mpf, pagep, modified ? DB_MPOOL_DIRTY : 0))
goto out;
*lsnp = argp->prev_lsn;
ret = 0;
out: REC_CLOSE;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment