/[Apache-SVN]
ViewVC logotype

Revision 1535523


Jump to revision: Previous Next
Author: mikem
Date: Thu Oct 24 20:22:52 2013 UTC (10 years, 5 months ago)
Changed paths: 4
Log Message:
DERBY-4923 update of a long row can fail with ERROR nospc: nospc.U exception.

backport change #1535413 from trunk to 10.10 branch.

This checkin fixes the problem repro'd by the included new test, which shows
an update of an existing row in db failing with a nosp.U exception.
The problem was an off by 1 error in checking for enough space to update a row
on an overflow page to just an overflow pointer. The intent of the code is to
always reserve enough space in every overflow row to allow for this update.
In this case there was exactly enough space, but the code mistaken thought it
needed 1 more byte.



Changed paths

Path Details
Directorydb/derby/code/branches/10.10/ modified , props changed
Directorydb/derby/code/branches/10.10/java/engine/org/apache/derby/impl/store/raw/data/StoredPage.java modified , text changed
Directorydb/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/store/Derby4923Test.java
(Copied from db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/Derby4923Test.java, r1535413)
added
Directorydb/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/store/_Suite.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26