1N/A * See the file LICENSE for redistribution information. 1N/A * Copyright (c) 1998 1N/A * Sleepycat Software. All rights reserved. 1N/A#
pragma ident "%Z%%M% %I% %E% SMI" 1N/A#
endif /* not lint */ 1N/A * First try to open up the underlying DB. 1N/A * The dbenv argument is taken from the global list of environments. 1N/A * When the transaction manager called xa_start() (__db_xa_start()), 1N/A * the "current" DB environment was moved to the start of the list. 1N/A * However, if we were called in a tpsvrinit function (which is 1N/A * entirely plausible), then it's possible that xa_open was called 1N/A * (which simply recorded the name of the environment to open) and 1N/A * this is the next call into DB. In that case, we still have to 1N/A * open the environment. 1N/A * The way that we know that xa_open and nothing else was called 1N/A * is because the nameq is not NULL. 1N/A * Allocate our own DB handle, and copy the exported fields and 1N/A * function pointers into it. The internal pointer references 1N/A * the real underlying DB handle. 1N/A /* Close any associated cursors. */ 1N/A /* Close the DB handle. */ 1N/A * Allocate our own DBC handle, and copy the exported fields and 1N/A * function pointers into it. The internal pointer references 1N/A * the real underlying DBC handle.