Fix BSD and Sun problems after coverity fixes
This commit is contained in:
committed by
Jon Trulson
parent
15fb8cea03
commit
16fbb15ecc
@@ -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()
|
||||
|
||||
@@ -68,6 +68,8 @@
|
||||
|
||||
#endif
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
#include "dstr/index_agent.h"
|
||||
#include "btree_berkeley/db.h"
|
||||
|
||||
|
||||
@@ -420,7 +420,6 @@ typedef Stack<NTerminal*> _stkNTPtr_;
|
||||
/* Basic subdir refs */
|
||||
typedef CC_TPtrDlist<sr_DtCvSegment> _ccTPtrDLstCvSegmnt_;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(sun) | defined(hpux)
|
||||
|
||||
Reference in New Issue
Block a user