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
69fc5088
Commit
69fc5088
authored
6 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Removed duplicated text from SqliteCatalogue exception messages
parent
2d4108f7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
catalogue/SqliteCatalogue.cpp
+7
-7
7 additions, 7 deletions
catalogue/SqliteCatalogue.cpp
with
7 additions
and
7 deletions
catalogue/SqliteCatalogue.cpp
+
7
−
7
View file @
69fc5088
...
...
@@ -495,7 +495,7 @@ void SqliteCatalogue::fileWrittenToTape(const rdbms::AutocommitMode autocommitMo
if
(
nullptr
==
archiveFile
)
{
// This should never happen
exception
::
Exception
ex
;
ex
.
getMessage
()
<<
__FUNCTION__
<<
" failed:
Failed to find archive file: archiveFilId="
<<
event
.
archiveFileId
;
ex
.
getMessage
()
<<
"
Failed to find archive file: archiveFil
e
Id="
<<
event
.
archiveFileId
;
throw
ex
;
}
...
...
@@ -505,22 +505,22 @@ void SqliteCatalogue::fileWrittenToTape(const rdbms::AutocommitMode autocommitMo
if
(
archiveFile
->
fileSize
!=
event
.
size
)
{
catalogue
::
FileSizeMismatch
ex
;
ex
.
getMessage
()
<<
__FUNCTION__
<<
":
File size mismatch: expected="
<<
archiveFile
->
fileSize
<<
", actual="
<<
event
.
size
<<
": "
<<
fileContext
.
str
();
ex
.
getMessage
()
<<
"
File size mismatch: expected="
<<
archiveFile
->
fileSize
<<
", actual="
<<
event
.
size
<<
": "
<<
fileContext
.
str
();
throw
ex
;
}
if
(
archiveFile
->
checksumType
!=
event
.
checksumType
)
{
catalogue
::
ChecksumTypeMismatch
ex
;
ex
.
getMessage
()
<<
__FUNCTION__
<<
":
Checksum type mismatch: expected="
<<
archiveFile
->
checksumType
<<
", actual="
<<
event
.
checksumType
<<
": "
<<
fileContext
.
str
();
ex
.
getMessage
()
<<
"
Checksum type mismatch: expected="
<<
archiveFile
->
checksumType
<<
", actual="
<<
event
.
checksumType
<<
": "
<<
fileContext
.
str
();
throw
ex
;
}
if
(
archiveFile
->
checksumValue
!=
event
.
checksumValue
)
{
catalogue
::
ChecksumValueMismatch
ex
;
ex
.
getMessage
()
<<
__FUNCTION__
<<
":
Checksum value mismatch: expected="
<<
archiveFile
->
checksumValue
<<
", actual="
<<
event
.
checksumValue
<<
": "
<<
fileContext
.
str
();
ex
.
getMessage
()
<<
"
Checksum value mismatch: expected="
<<
archiveFile
->
checksumValue
<<
", actual="
<<
event
.
checksumValue
<<
": "
<<
fileContext
.
str
();
throw
ex
;
}
...
...
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