summaryrefslogtreecommitdiff
path: root/xmlhelp/source/cxxhelp/db/BlockManager.cxx
diff options
context:
space:
mode:
authorAndreas Bille <abi@openoffice.org>2001-06-19 12:41:05 +0000
committerAndreas Bille <abi@openoffice.org>2001-06-19 12:41:05 +0000
commit4955786cd2af7aef46bb44ed733959da1711ef5d (patch)
tree96a2c21faee87adbee219a6726a52cbb80987db7 /xmlhelp/source/cxxhelp/db/BlockManager.cxx
parent2d8853bed02e687f3b40e905f9b81c5a6e3a04ee (diff)
#88432#
Added exception specifications for determination of misconfigured index. Now also reading from lowercase filenames
Diffstat (limited to 'xmlhelp/source/cxxhelp/db/BlockManager.cxx')
-rw-r--r--xmlhelp/source/cxxhelp/db/BlockManager.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/xmlhelp/source/cxxhelp/db/BlockManager.cxx b/xmlhelp/source/cxxhelp/db/BlockManager.cxx
index a833fa0573b1..3d3f91560c30 100644
--- a/xmlhelp/source/cxxhelp/db/BlockManager.cxx
+++ b/xmlhelp/source/cxxhelp/db/BlockManager.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: BlockManager.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: abi $ $Date: 2001-06-06 14:48:47 $
+ * last change: $Author: abi $ $Date: 2001-06-19 13:41:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -68,18 +68,25 @@
using namespace ::xmlsearch;
+using namespace ::xmlsearch::excep;
using namespace ::xmlsearch::db;
-BlockManager::BlockManager( DBEnv* dbenv )
+BlockManager::BlockManager( DBEnv* dbenv ) throw( IOException )
: oldest_( 0 ),
newest_( 0 ),
dbenv_( dbenv ),
blockused_( 0 ),
blockTable_( dbenv_ ? dbenv_->getBlockCount() : 0 ) // Hardcoded headerlen?
{
- mapStorage2Memory( 0 );
+ if( blockTable_.size() )
+ mapStorage2Memory( 0 );
+ else
+ {
+ delete dbenv_;
+ throw IOException( rtl::OUString::createFromAscii( "BlockManager::BlockManager -> no blockcount" ) );
+ }
}