Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chaosframework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chaos-lnf-control
chaosframework
Commits
3222309c
Commit
3222309c
authored
3 years ago
by
Andrea Michelotti
Browse files
Options
Downloads
Patches
Plain Diff
query
parent
db9d6ce4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChaosMetadataService/object_storage/posixFile/PosixFileObjectStorageDriver.cpp
+4
-2
4 additions, 2 deletions
...object_storage/posixFile/PosixFileObjectStorageDriver.cpp
chaos/common/chaos_types.h
+0
-1
0 additions, 1 deletion
chaos/common/chaos_types.h
with
4 additions
and
3 deletions
ChaosMetadataService/object_storage/posixFile/PosixFileObjectStorageDriver.cpp
+
4
−
2
View file @
3222309c
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
chaos/common/chaos_types.h
+
0
−
1
View file @
3222309c
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment