Fix BSD and Sun problems after coverity fixes

This commit is contained in:
Ulrich Wilkens
2018-05-31 22:47:27 +02:00
committed by Jon Trulson
parent 15fb8cea03
commit 16fbb15ecc
12 changed files with 31 additions and 16 deletions

View File

@@ -77,11 +77,15 @@ btree::btree(const char* store_name)
btree::~btree()
{
if ( btree_DB->sync(btree_DB, 0) == RET_ERROR )
throw(stringException("btree sync failed"));
if ( btree_DB->sync(btree_DB, 0) == RET_ERROR ) {
cerr << "btree sync failed";
std::exit(1);
}
if ( btree_DB->close(btree_DB) == RET_ERROR )
throw(stringException("btree close failed"));
if ( btree_DB->close(btree_DB) == RET_ERROR ) {
cerr << "btree close failed";
std::exit(1);
}
}
void btree::clean()

View File

@@ -68,6 +68,8 @@
#endif
#include <cstdlib>
#include "dstr/index_agent.h"
#include "btree_berkeley/db.h"

View File

@@ -420,7 +420,6 @@ typedef Stack<NTerminal*> _stkNTPtr_;
/* Basic subdir refs */
typedef CC_TPtrDlist<sr_DtCvSegment> _ccTPtrDLstCvSegmnt_;
#endif
#endif
#if defined(sun) | defined(hpux)