Commit 55709a25 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed wrong copy number displayed after repacking a tape.

parent 07551c90
......@@ -96,9 +96,6 @@ public:
for(auto jt = archiveFile.tapeFiles.cbegin(); jt != archiveFile.tapeFiles.cend(); jt++) {
Data record;
// Copy number
record.mutable_afls_item()->set_copy_nb(jt->first);
// Archive file
auto af = record.mutable_afls_item()->mutable_af();
af->set_archive_id(archiveFile.archiveFileID);
......@@ -118,6 +115,7 @@ public:
tf->set_vid(jt->second.vid);
tf->set_f_seq(jt->second.fSeq);
tf->set_block_id(jt->second.blockId);
record.mutable_afls_item()->set_copy_nb(jt->second.copyNb);
// is_buffer_full is set to true when we have one full block of data in the buffer, i.e.
// enough data to send to the client. The actual buffer size is double the block size,
......
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