Skip to content
Snippets Groups Projects
Commit 3222309c authored by Andrea Michelotti's avatar Andrea Michelotti
Browse files

query

parent db9d6ce4
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ void PosixFileObjectStorageDriver::init(void *init_data) throw (chaos::CExceptio
MapKVP& obj_stoarge_kvp = metadata_service::ChaosMetadataService::getInstance()->setting.fsobject_storage_setting.key_value_custom_param;
*/
if ((boost::filesystem::exists(basedatapath) == false)){
/* if ((boost::filesystem::exists(basedatapath) == false)){
bool ret=false;
try {
ret=boost::filesystem::create_directories(basedatapath);
......@@ -105,8 +105,10 @@ void PosixFileObjectStorageDriver::init(void *init_data) throw (chaos::CExceptio
throw chaos::CException(-2,__PRETTY_FUNCTION__,"cannot create directory:"+basedatapath);
}
}*/
if ((boost::filesystem::exists(basedatapath) == false)){
throw chaos::CException(-1,__PRETTY_FUNCTION__,"directory:"+basedatapath+ " does not exists");
}
PosixFile::removeTemp=removeTemp;
......
......@@ -117,7 +117,6 @@ using ChaosFunction = std::function< R >;
#ifdef FORCE_BOOST_SHPOINTER
#warning "Forcing BOOST USE"
#include <boost/shared_ptr.hpp>
#include <boost/atomic.hpp>
#include <boost/thread/future.hpp>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment