XmlManager::compactContainer

API Ref

#include <DbXml.hpp>

void XmlManager::compactContainer( const std::string &name, XmlUpdateContext &context, u_int32_t flags = 0)

void XmlManager::compactContainer( XmlTransaction &txn, const std::string &name, XmlUpdateContext &context, u_int32_t flags = 0)


Description: XmlManager::compactContainer

Compacts all of the databases in the container using Db::compact.

The container must be closed; the system throws an exception if the container is open.

Parameters

txn
If the operation is to be transaction-protected, the txn parameter is an XmlTransaction handle returned from XmlManager::createTransaction.
name
The name of the container to be compacted.
context
The XmlUpdateContext object to be used for this operation.
flags
Unused.

Errors

The XmlManager::upgradeContainer method may fail and throw XmlException, encapsulating one of the following non-zero errors:

CONTAINER_OPEN
The container is open.
DATABASE_ERROR
An error occurred in an underlying Berkeley DB database. The XmlException::getDbErrno method will return the error code for the error.

APIRef

Copyright (c) 1996,2007 Oracle. All rights reserved.