Skip to content

Commit

Permalink
make unit test happy 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
pictos committed Jun 14, 2024
1 parent dd063ef commit ae62518
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions LiteDB/Engine/Disk/Streams/AesStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ public AesStream(string password, Stream stream)
}
finally
{
_bufferPool.Return(msBuffer);
_bufferPool.Return(checkBuffer);
_bufferPool.Return(msBuffer, true);
_bufferPool.Return(checkBuffer, true);
}
}

Expand Down
2 changes: 1 addition & 1 deletion LiteDB/Engine/Sort/SortContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private IEnumerable<BufferSlice> GetSourceFromStream(Stream stream)
yield return buffer;
}

_bufferPool.Return(bytes);
_bufferPool.Return(bytes, true);
}

public void Dispose()
Expand Down
3 changes: 0 additions & 3 deletions LiteDB/Engine/Sort/SortService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ public void Dispose()
}
}

// return array buffer into pool
_bufferPool.Return(_buffer.Array);

// return open strem into disk
if (_reader.IsValueCreated)
{
Expand Down

0 comments on commit ae62518

Please sign in to comment.