Commit 9dee0fbd authored by Steven Murray's avatar Steven Murray
Browse files

Catalogue now sets TapeForWriting.tapePool

parent 2bde18cc
......@@ -1093,6 +1093,7 @@ TEST_F(cta_catalogue_InMemoryCatalogueTest, getTapesForWriting) {
const catalogue::TapeForWriting tape = tapes.front();
ASSERT_EQ(vid, tape.vid);
ASSERT_EQ(tapePoolName, tape.tapePool);
ASSERT_EQ(0, tape.lastFSeq);
ASSERT_EQ(capacityInBytes, tape.capacityInBytes);
ASSERT_EQ(0, tape.dataOnTapeInBytes);
......
......@@ -2994,6 +2994,7 @@ std::list<TapeForWriting> RdbmsCatalogue::getTapesForWriting(const std::string &
const char *const sql =
"SELECT "
"VID AS VID,"
"TAPE_POOL_NAME AS TAPE_POOL_NAME,"
"CAPACITY_IN_BYTES AS CAPACITY_IN_BYTES,"
"DATA_IN_BYTES AS DATA_IN_BYTES,"
"LAST_FSEQ AS LAST_FSEQ,"
......@@ -3011,6 +3012,7 @@ std::list<TapeForWriting> RdbmsCatalogue::getTapesForWriting(const std::string &
TapeForWriting tape;
tape.vid = rset->columnText("VID");
tape.tapePool = rset->columnText("TAPE_POOL_NAME");
tape.capacityInBytes = rset->columnUint64("CAPACITY_IN_BYTES");
tape.dataOnTapeInBytes = rset->columnUint64("DATA_IN_BYTES");
tape.lastFSeq = rset->columnUint64("LAST_FSEQ");
......
......@@ -55,7 +55,7 @@ struct TapeForWriting {
std::string vid;
/**
* The name of the tape pool
* The name of the tape pool.
*/
std::string tapePool;
......
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