2001-03-04 19:42:05 -05:00
|
|
|
/*-
|
|
|
|
* See the file LICENSE for redistribution information.
|
|
|
|
*
|
2005-12-05 10:27:46 -08:00
|
|
|
* Copyright (c) 1996-2005
|
2001-03-04 19:42:05 -05:00
|
|
|
* Sleepycat Software. All rights reserved.
|
|
|
|
*
|
2005-12-05 10:27:46 -08:00
|
|
|
* $Id: crdel.src,v 12.2 2005/09/28 17:44:18 margo Exp $
|
2001-03-04 19:42:05 -05:00
|
|
|
*/
|
|
|
|
|
2002-10-30 15:57:05 +04:00
|
|
|
PREFIX __crdel
|
|
|
|
DBPRIVATE
|
2001-03-04 19:42:05 -05:00
|
|
|
|
|
|
|
INCLUDE #ifndef NO_SYSTEM_INCLUDES
|
|
|
|
INCLUDE #include <sys/types.h>
|
|
|
|
INCLUDE
|
|
|
|
INCLUDE #include <ctype.h>
|
|
|
|
INCLUDE #include <string.h>
|
|
|
|
INCLUDE #endif
|
|
|
|
INCLUDE
|
|
|
|
INCLUDE #include "db_int.h"
|
2002-10-30 15:57:05 +04:00
|
|
|
INCLUDE #include "dbinc/crypto.h"
|
|
|
|
INCLUDE #include "dbinc/db_page.h"
|
|
|
|
INCLUDE #include "dbinc/db_dispatch.h"
|
|
|
|
INCLUDE #include "dbinc/db_am.h"
|
|
|
|
INCLUDE #include "dbinc/log.h"
|
|
|
|
INCLUDE #include "dbinc/txn.h"
|
2001-03-04 19:42:05 -05:00
|
|
|
INCLUDE
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Metasub: log the creation of a subdatabase meta data page.
|
|
|
|
*
|
|
|
|
* fileid: identifies the file being acted upon.
|
|
|
|
* pgno: page number on which to write this meta-data page
|
|
|
|
* page: the actual meta-data page
|
|
|
|
* lsn: lsn of the page.
|
|
|
|
*/
|
|
|
|
BEGIN metasub 142
|
2002-10-30 15:57:05 +04:00
|
|
|
DB fileid int32_t ld
|
2005-07-20 15:48:22 -07:00
|
|
|
ARG pgno db_pgno_t lu
|
2002-10-30 15:57:05 +04:00
|
|
|
PGDBT page DBT s
|
2001-03-04 19:42:05 -05:00
|
|
|
POINTER lsn DB_LSN * lu
|
|
|
|
END
|
|
|
|
|
2005-12-05 10:27:46 -08:00
|
|
|
/*
|
|
|
|
* Inmem_create: Log the creation of an in-memory database.
|
|
|
|
*
|
|
|
|
* name: Name of the database
|
|
|
|
* fid: File id of the database
|
|
|
|
*/
|
|
|
|
BEGIN inmem_create 138
|
|
|
|
ARG fileid int32_t ld
|
|
|
|
DBT name DBT s
|
|
|
|
DBT fid DBT s
|
|
|
|
ARG pgsize u_int32_t lu
|
|
|
|
END
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Inmem_rename: Log the renaming of an in-memory only database.
|
|
|
|
*
|
|
|
|
* oldname: database's starting name
|
|
|
|
* newname: database's ending name
|
|
|
|
* fid: fileid
|
|
|
|
*/
|
|
|
|
BEGIN inmem_rename 139
|
|
|
|
DBT oldname DBT s
|
|
|
|
DBT newname DBT s
|
|
|
|
DBT fid DBT s
|
|
|
|
END
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Inmem_remove: Log the removal of an in-memory only database.
|
|
|
|
*
|
|
|
|
* name: database's ending name
|
|
|
|
* fid: fileid
|
|
|
|
*/
|
|
|
|
BEGIN inmem_remove 140
|
|
|
|
DBT name DBT s
|
|
|
|
DBT fid DBT s
|
|
|
|
END
|
|
|
|
|