fix the mistake of do_write when write return EAGAIN

This commit is contained in:
obdev
2023-03-08 06:10:46 +00:00
committed by ob-robot
parent ebefd2bd67
commit 684faf81f1

View File

@ -317,7 +317,7 @@ private:
LOG_WARN("write data error", K(errno)); LOG_WARN("write data error", K(errno));
} }
} }
if (OB_SUCCESS == ret || EAGAIN == ret) { if (OB_SUCCESS == ret || OB_EAGAIN == ret) {
consume_bytes = pos; consume_bytes = pos;
ret = OB_SUCCESS; ret = OB_SUCCESS;
} }