Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
98485988
Commit
98485988
authored
Mar 28, 2014
by
Eric Cano
Browse files
Fixed unitialized value in CastorConf structure for Migration session test.
parent
686db2d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/MountSession.hpp
View file @
98485988
...
...
@@ -53,6 +53,10 @@ namespace daemon {
public:
CastorConf
()
:
rfioConnRetry
(
0
),
rfioConnRetryInt
(
0
),
rfioIOBufSize
(
0
),
rtcopydBufsz
(
0
),
rtcopydNbBufs
(
0
),
tapeConfirmDriveFreeInterval
(
0
),
tapebridgeBulkRequestMigrationMaxBytes
(
0
),
tapebridgeBulkRequestMigrationMaxFiles
(
0
),
tapebridgeBulkRequestRecallMaxBytes
(
0
),
tapebridgeBulkRequestRecallMaxFiles
(
0
),
tapeserverdDiskThreads
(
0
)
{}
uint32_t
rfioConnRetry
;
uint32_t
rfioConnRetryInt
;
...
...
@@ -62,10 +66,10 @@ namespace daemon {
std
::
string
tapeBadMIRHandlingRepair
;
std
::
string
tapeConfirmDriveFree
;
uint32_t
tapeConfirmDriveFreeInterval
;
uint
32
_t
tapebridgeBulkRequestMigrationMaxBytes
;
uint
32
_t
tapebridgeBulkRequestMigrationMaxFiles
;
uint
32
_t
tapebridgeBulkRequestRecallMaxBytes
;
uint
32
_t
tapebridgeBulkRequestRecallMaxFiles
;
uint
64
_t
tapebridgeBulkRequestMigrationMaxBytes
;
uint
64
_t
tapebridgeBulkRequestMigrationMaxFiles
;
uint
64
_t
tapebridgeBulkRequestRecallMaxBytes
;
uint
64
_t
tapebridgeBulkRequestRecallMaxFiles
;
// Other values found on production tape servers
// TAPE CRASHED_RLS_HANDLING RETRY
// TAPE CRASHED_RLS_HANDLING_RETRIES 3
...
...
castor/tape/tapeserver/daemon/tapeserverdTest.cpp
View file @
98485988
...
...
@@ -23,6 +23,10 @@
*****************************************************************************/
#include
<gtest/gtest.h>
#define __STDC_CONSTANT_MACROS // For using stdint macros (stdint is included
// by inttypes.h, so we shoot first)
#include
<stdint.h>
#include
<inttypes.h>
#include
"castor/tape/tapeserver/client/ClientSimulator.hpp"
#include
"castor/tape/tapeserver/client/ClientSimSingleReply.hpp"
#include
"castor/tape/tapeserver/client/ClientProxy.hpp"
...
...
@@ -90,6 +94,8 @@ TEST(tapeServer, MountSessionGoodday) {
MountSession
::
CastorConf
castorConf
;
castorConf
.
rtcopydBufsz
=
1024
;
castorConf
.
rtcopydNbBufs
=
10
;
castorConf
.
tapebridgeBulkRequestRecallMaxBytes
=
UINT64_C
(
100
)
*
1000
*
1000
*
1000
;
castorConf
.
tapebridgeBulkRequestRecallMaxFiles
=
1000
;
MountSession
sess
(
VDQMjob
,
logger
,
mockSys
,
tpConfig
,
castorConf
);
sess
.
execute
();
simRun
.
wait
();
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment