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

Backport fix for bug CORE-3468 : Attempt to read after the end of file when nbackup state is stalled

This commit is contained in:
hvlad 2011-06-15 09:53:11 +00:00
parent af4fab86fc
commit 4bbd667929

View File

@ -2741,8 +2741,7 @@ static void extend_relation( thread_db* tdbb, jrd_rel* relation, WIN * window)
To prevent possible deadlocks (since we own already an exlusive latch and we To prevent possible deadlocks (since we own already an exlusive latch and we
are asking for another exclusive latch), time out on the latch after 1 second. */ are asking for another exclusive latch), time out on the latch after 1 second. */
data_page* dpage = data_page* dpage = (data_page*) CCH_fake(tdbb, window, -1);
(data_page*) CCH_FETCH_TIMEOUT(tdbb, window, LCK_write, pag_undefined, -1);
/* In the case of a timeout, retry the whole thing. */ /* In the case of a timeout, retry the whole thing. */