mirror of
https://github.com/ceph/ceph
synced 2025-04-01 23:02:17 +00:00
msg/async/dpdk: Fix build when DPDK enabled
Signed-off-by: Jun Su <howard0su@gmail.com>
This commit is contained in:
parent
67a2a4e7aa
commit
6bdf97c329
@ -137,10 +137,9 @@ private:
|
||||
|
||||
std::vector<fragment> frags;
|
||||
auto pb = bl.buffers().begin();
|
||||
uint64_t left_pbrs = bl.buffers().size();
|
||||
uint64_t len = 0;
|
||||
uint64_t seglen = 0;
|
||||
while (len < available && left_pbrs--) {
|
||||
while (len < available && pb != bl.buffers().end()) {
|
||||
seglen = pb->length();
|
||||
// Buffer length is zero, no need to send, so skip it
|
||||
if (seglen == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user