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
528ad67d
Commit
528ad67d
authored
9 years ago
by
Eric Cano
Browse files
Options
Downloads
Patches
Plain Diff
Added sorting of StorageClass list in OStoreDB::getStorageClasses()
parent
8d4ef915
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scheduler/OStoreDB/OStoreDB.cpp
+2
-0
2 additions, 0 deletions
scheduler/OStoreDB/OStoreDB.cpp
scheduler/StorageClass.cpp
+8
-0
8 additions, 0 deletions
scheduler/StorageClass.cpp
scheduler/StorageClass.hpp
+8
-0
8 additions, 0 deletions
scheduler/StorageClass.hpp
with
18 additions
and
0 deletions
scheduler/OStoreDB/OStoreDB.cpp
+
2
−
0
View file @
528ad67d
...
...
@@ -23,6 +23,7 @@
#include
"scheduler/StorageClass.hpp"
#include
"scheduler/AdminHost.hpp"
#include
"scheduler/AdminUser.hpp"
#include
<algorithm>
namespace
cta
{
...
...
@@ -167,6 +168,7 @@ std::list<StorageClass> OStoreDB::getStorageClasses() const {
sc
->
copyCount
,
cta
::
UserIdentity
(
sc
->
log
.
uid
,
sc
->
log
.
gid
),
sc
->
log
.
comment
,
sc
->
log
.
time
));
}
ret
.
sort
();
return
ret
;
}
...
...
This diff is collapsed.
Click to expand it.
scheduler/StorageClass.cpp
+
8
−
0
View file @
528ad67d
...
...
@@ -58,3 +58,11 @@ const std::string &cta::StorageClass::getName() const throw() {
uint16_t
cta
::
StorageClass
::
getNbCopies
()
const
throw
()
{
return
m_nbCopies
;
}
//------------------------------------------------------------------------------
// operator<
//------------------------------------------------------------------------------
bool
cta
::
StorageClass
::
operator
<
(
const
StorageClass
&
rhs
)
const
{
return
m_name
<
rhs
.
m_name
;
}
This diff is collapsed.
Click to expand it.
scheduler/StorageClass.hpp
+
8
−
0
View file @
528ad67d
...
...
@@ -76,6 +76,14 @@ public:
* class should have on tape.
*/
uint16_t
getNbCopies
()
const
throw
();
/**
* Returns true if the specified right-hand side is greater than this object.
*
* @param rhs The object on the right-hand side of the < operator.
* @return True if the specified right-hand side is greater than this object.
*/
bool
operator
<
(
const
StorageClass
&
rhs
)
const
;
private:
...
...
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