Skip to content

Commit

Permalink
RowServiceInputStream handle read before close cleanup
Browse files Browse the repository at this point in the history
- Removed incorrect handle read, clarified why reading an additional int is needed during close

Signed-off-by: James McMullan [email protected]
  • Loading branch information
jpmcmu committed Aug 1, 2024
1 parent 1834b0c commit dcb8aef
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,6 @@ private int startFetch()
{
try
{
// Read handle before closing
this.dis.readInt();

close();
}
catch (IOException e)
Expand Down Expand Up @@ -889,7 +886,8 @@ else if (this.handle == 0)
{
if (dataLen == 0)
{
dataLen = dis.readInt(); // need to read addl int here ...
// Read handle before closing
dis.readInt();
close();
return 0;
}
Expand Down

0 comments on commit dcb8aef

Please sign in to comment.