From 8785ffcb0e640070c6fc7fc8637b2b3363d4eaf6 Mon Sep 17 00:00:00 2001 From: zhang275 <77143103+zhang275@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:35:05 +0800 Subject: [PATCH] Fixed readback boundary (#370) --- src/rpc_buffer.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rpc_buffer.cc b/src/rpc_buffer.cc index 0a45fa3d..d5ebb079 100644 --- a/src/rpc_buffer.cc +++ b/src/rpc_buffer.cc @@ -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;