Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
dCache
cta
Commits
c2a8a76f
Commit
c2a8a76f
authored
10 years ago
by
Eric Cano
Browse files
Options
Downloads
Patches
Plain Diff
WIP: partial implementation of garbage collector
parent
e0b1c654
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
objectstore/Action.hpp
+19
-0
19 additions, 0 deletions
objectstore/Action.hpp
objectstore/RecallJob.hpp
+7
-0
7 additions, 0 deletions
objectstore/RecallJob.hpp
with
26 additions
and
0 deletions
objectstore/Action.hpp
+
19
−
0
View file @
c2a8a76f
...
@@ -159,11 +159,30 @@ private:
...
@@ -159,11 +159,30 @@ private:
i
!=
intendedObjects
.
end
();
i
++
)
{
i
!=
intendedObjects
.
end
();
i
++
)
{
switch
(
i
->
objectType
)
{
switch
(
i
->
objectType
)
{
case
serializers
::
RecallFIFO_t
:
case
serializers
::
RecallFIFO_t
:
// We need to check that this recall FIFO is plugged in the job pool
// structure
{
RootEntry
re
(
m_agent
);
JobPool
jp
(
re
.
getJobPool
(
m_agent
),
m_agent
);
if
(
i
->
name
!=
jp
.
getRecallFIFO
(
m_agent
))
m_agent
.
objectStore
().
remove
(
i
->
name
);
break
;
break
;
}
case
serializers
::
RecallJob_t
:
case
serializers
::
RecallJob_t
:
{
// The recall job here can only think of on FIFO it could be in. This
// will be more varied in the future.
RecallJob
rj
(
i
->
name
,
m_agent
);
FIFO
RecallFIFO
(
rj
.
owner
(
m_agent
),
m_agent
);
// We repost the job unconditionally in the FIFO. In case of an attempted
// pop, the actual ownership (should be the FIFO) will be checked by
// the consumer. If the owner is not right,
break
;
break
;
}
case
serializers
::
JobPool_t
:
case
serializers
::
JobPool_t
:
{
break
;
break
;
}
}
}
}
}
}
catch
(...)
{}
}
catch
(...)
{}
...
...
This diff is collapsed.
Click to expand it.
objectstore/RecallJob.hpp
+
7
−
0
View file @
c2a8a76f
...
@@ -39,6 +39,13 @@ public:
...
@@ -39,6 +39,13 @@ public:
updateFromObjectStore
(
rjs
,
agent
.
getFreeContext
());
updateFromObjectStore
(
rjs
,
agent
.
getFreeContext
());
return
rjs
.
destination
();
return
rjs
.
destination
();
}
}
std
::
string
owner
(
Agent
&
agent
)
{
serializers
::
RecallJob
rjs
;
updateFromObjectStore
(
rjs
,
agent
.
getFreeContext
());
return
rjs
.
owner
();
}
};
};
}}
}}
\ No newline at end of file
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