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
688ee2c0
Commit
688ee2c0
authored
3 years ago
by
Jorge Camarero Vera
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Fix Warning in updateDriveStatus"
parent
9d002401
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ReleaseNotes.md
+11
-0
11 additions, 0 deletions
ReleaseNotes.md
scheduler/TapeDrivesCatalogueState.cpp
+11
-8
11 additions, 8 deletions
scheduler/TapeDrivesCatalogueState.cpp
with
22 additions
and
8 deletions
ReleaseNotes.md
+
11
−
0
View file @
688ee2c0
...
...
@@ -6,6 +6,17 @@
### Bug fixes
-
cta/CTA#1029 Fix segmentatin fault in frontend when list repacks of a tape that has been deleted in the catalogue
-
cta/CTA#1031 Fix Warning in updateDriveStatus
# v4.2-3
# v4.2-2
## Summary
### Features
-
cta/CTA#976 Add logical part of Drive Status using Catalogue
-
cta/CTA#988 Add diskSpaceReservations map in cta-admin --json dr ls output.
# v4.2-1
...
...
This diff is collapsed.
Click to expand it.
scheduler/TapeDrivesCatalogueState.cpp
+
11
−
8
View file @
688ee2c0
...
...
@@ -21,6 +21,7 @@
#include
"common/dataStructures/DriveInfo.hpp"
#include
"common/dataStructures/TapeDrive.hpp"
#include
"common/log/Logger.hpp"
#include
"scheduler/DiskSpaceReservation.hpp"
#include
"TapeDrivesCatalogueState.hpp"
#include
"tapeserver/daemon/TpconfigLine.hpp"
...
...
@@ -206,14 +207,16 @@ void TapeDrivesCatalogueState::updateDriveStatus(const common::dataStructures::D
case
common
::
dataStructures
::
DriveStatus
::
Unknown
:
case
common
::
dataStructures
::
DriveStatus
::
Up
:
{
log
::
ScopedParamContainer
params
(
lc
);
params
.
add
(
"diskSystem"
,
driveState
.
diskSystemName
)
.
add
(
"bytes"
,
driveState
.
reservedBytes
)
.
add
(
"previousStatus"
,
toString
(
previousStatus
))
.
add
(
"newStatus"
,
toString
(
driveState
.
driveStatus
));
lc
.
log
(
log
::
WARNING
,
"In TapeDrivesCatalogueState::updateDriveStatus(): will clear non-empty disk space reservation on status change."
);
driveState
.
diskSystemName
=
"NULL"
;
driveState
.
reservedBytes
=
0
;
if
(
driveState
.
diskSystemName
!=
"NULL"
)
{
log
::
ScopedParamContainer
params
(
lc
);
params
.
add
(
"diskSystem"
,
driveState
.
diskSystemName
)
.
add
(
"bytes"
,
driveState
.
reservedBytes
)
.
add
(
"previousStatus"
,
toString
(
previousStatus
))
.
add
(
"newStatus"
,
toString
(
driveState
.
driveStatus
));
lc
.
log
(
log
::
WARNING
,
"In TapeDrivesCatalogueState::updateDriveStatus(): will clear non-empty disk space reservation on status change."
);
driveState
.
diskSystemName
=
"NULL"
;
driveState
.
reservedBytes
=
0
;
}
}
default
:
break
;
...
...
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