Skip to content

Commit

Permalink
Fixed readback boundary (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang275 authored Mar 18, 2024
1 parent d73e3f4 commit 8785ffc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rpc_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,10 @@ long RPCBuffer::read_back(long offset)
}

if (cur_.first == buffer_list_.begin())
break;
{
cur_.second = 0;
break;
}

--cur_.first;
cur_.second = cur_.first->buflen;
Expand Down

0 comments on commit 8785ffc

Please sign in to comment.