hi bfs,
I'm reading your chunk server code,and the code in the Block::Read seems might miss some data already written.Now the read data process is:
diskfile --> block_buflist --> block buf
However,I think that while someone doing read,someone can write,the writer might add data into "recvwindow".So the correct way i think is:
diskfile --> block_buf_list --> recvwindows --> block buf
Through,as the write and read might happen concurrently,the data might be mixed.Is that right?
hi bfs, I'm reading your chunk server code,and the code in the Block::Read seems might miss some data already written.Now the read data process is: diskfile --> block_buflist --> block buf
However,I think that while someone doing read,someone can write,the writer might add data into "recvwindow".So the correct way i think is: diskfile --> block_buf_list --> recvwindows --> block buf
Through,as the write and read might happen concurrently,the data might be mixed.Is that right?