Skip to content
Snippets Groups Projects
Commit 2b3c50fa authored by Veronique Legrand's avatar Veronique Legrand
Browse files

fixed bug related to output value of lseek that happened only on very large files

parent d9c2e782
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
class FqAuxBackend:public FqBaseBackend {
unsigned long cur_offset;
off_t cur_offset;
T_buf_info buf_info;
void readBuffer();
......
......@@ -39,7 +39,7 @@
#define _FILE_OFFSET_BITS 64 // for portability reasons on 32bits systems.
//#define DEBUG
#define DEBUG
#ifdef DEBUG
#include <string.h>
......@@ -62,7 +62,7 @@ FqMainBackend::FqMainBackend(srp * io_sr):FqBaseBackend() {
void FqMainBackend::processFile(char * filename,unsigned char f_id) {
FILE * fp;
int nread;
long cur_offset;
off_t cur_offset;
mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
this->i_filename=filename;
this->f_id=f_id;
......@@ -93,6 +93,7 @@ void FqMainBackend::processFile(char * filename,unsigned char f_id) {
void FqMainBackend::onEndFastqRecord(T_fq_rec_info& rec_info,const T_buf_info& bufinfo) {
cout<<"finished processing read at iffset:"<<rec_info.rstart_offset<<endl;
rpos rp=init_rpos(f_id,rec_info.rstart_offset);
rinfo pe2info;
int nb_k_mer_PE2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment