Commit 98485988 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed unitialized value in CastorConf structure for Migration session test.

parent 686db2d1
......@@ -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;
uint32_t tapebridgeBulkRequestMigrationMaxBytes;
uint32_t tapebridgeBulkRequestMigrationMaxFiles;
uint32_t tapebridgeBulkRequestRecallMaxBytes;
uint32_t tapebridgeBulkRequestRecallMaxFiles;
uint64_t tapebridgeBulkRequestMigrationMaxBytes;
uint64_t tapebridgeBulkRequestMigrationMaxFiles;
uint64_t tapebridgeBulkRequestRecallMaxBytes;
uint64_t tapebridgeBulkRequestRecallMaxFiles;
// Other values found on production tape servers
// TAPE CRASHED_RLS_HANDLING RETRY
// TAPE CRASHED_RLS_HANDLING_RETRIES 3
......
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment