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
6b454927
Verified
Commit
6b454927
authored
6 years ago
by
Claudio Bisegni
Browse files
Options
Downloads
Patches
Plain Diff
fix compilation
parent
ff62c25f
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ChaosMetadataService/batch/general/CreateSnapshotBatch.cpp
+4
-5
4 additions, 5 deletions
ChaosMetadataService/batch/general/CreateSnapshotBatch.cpp
with
4 additions
and
5 deletions
ChaosMetadataService/batch/general/CreateSnapshotBatch.cpp
+
4
−
5
View file @
6b454927
...
...
@@ -130,13 +130,13 @@ int CreateSnapshotBatch::storeDatasetTypeInSnapsnot(const std::string& job_work_
G_RS_DBG
<<
"Get live data for "
<<
dataset_to_fetch
<<
" in channel"
;
persistence
::
data_access
::
SnapshotDataAccess
*
s_da
=
getDataAccess
<
mds_data_access
::
SnapshotDataAccess
>
();
Cache
PoolSlot
*
cache_
slot
=
DriverPoolManager
::
getInstance
()
->
getCacheDr
iverInstance
();
Cache
Driver
&
cache_
drv
=
DriverPoolManager
::
getInstance
()
->
getCacheDr
v
();
try
{
CacheData
stored_dataset
;
//get data
if
((
err
=
cache_
slot
->
resource_pooled
->
getData
(
std
::
string
(
dataset_to_fetch
.
c_str
(),
dataset_to_fetch
.
size
()),
stored_dataset
)))
{
if
((
err
=
cache_
drv
.
getData
(
std
::
string
(
dataset_to_fetch
.
c_str
(),
dataset_to_fetch
.
size
()),
stored_dataset
)))
{
G_RS_ERR
<<
"Error retrieving live data for "
<<
dataset_to_fetch
<<
" with error: "
<<
err
;
}
else
if
(
stored_dataset
&&
stored_dataset
->
size
())
{
...
...
@@ -157,7 +157,6 @@ int CreateSnapshotBatch::storeDatasetTypeInSnapsnot(const std::string& job_work_
G_RS_ERR
<<
"No data has been fetched for "
<<
dataset_to_fetch
;
}
}
catch
(...)
{}
DriverPoolManager
::
getInstance
()
->
releaseCacheDriverInstance
(
cache_slot
);
return
err
;
}
...
...
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