8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 10:03:03 +01:00

Better English :-)

This commit is contained in:
dimitr 2011-08-16 06:47:47 +00:00
parent 6c7dec450d
commit 96ed2f97eb

View File

@ -479,14 +479,14 @@ void TempSpace::releaseSpace(offset_t position, size_t size)
if (freeSegments.locate(Firebird::locEqual, end)) if (freeSegments.locate(Firebird::locEqual, end))
{ {
// The next segment is found to be adjucent // The next segment is found to be adjacent
Segment* const next_seg = &freeSegments.current(); Segment* const next_seg = &freeSegments.current();
next_seg->position -= size; next_seg->position -= size;
next_seg->size += size; next_seg->size += size;
if (freeSegments.getPrev()) if (freeSegments.getPrev())
{ {
// Check the prior segment for being adjucent // Check the prior segment for being adjacent
Segment* const prior_seg = &freeSegments.current(); Segment* const prior_seg = &freeSegments.current();
if (position == prior_seg->position + prior_seg->size) if (position == prior_seg->position + prior_seg->size)
{ {
@ -500,7 +500,7 @@ void TempSpace::releaseSpace(offset_t position, size_t size)
} }
else if (freeSegments.locate(Firebird::locLess, position)) else if (freeSegments.locate(Firebird::locLess, position))
{ {
// Check the prior segment for being adjucent // Check the prior segment for being adjacent
Segment* const prior_seg = &freeSegments.current(); Segment* const prior_seg = &freeSegments.current();
if (position == prior_seg->position + prior_seg->size) if (position == prior_seg->position + prior_seg->size)
{ {