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

Merge pull request #10 from aafemt/CORE-5174

Fix CORE-5174
This commit is contained in:
Dmitry Yemanov 2016-03-28 18:07:26 +03:00
commit 6ae1145394

View File

@ -3560,8 +3560,8 @@ void jrd_tra::rollbackToSavepoint(thread_db* tdbb, SLONG number)
**************************************/
{
// merge all but one folowing savepoints into one
while(tra_save_point && tra_save_point->sav_next &&
tra_save_point->sav_next->sav_number >= number)
while(tra_save_point && tra_save_point->sav_number > number &&
tra_save_point->sav_next && tra_save_point->sav_next->sav_number >= number)
{
rollforwardSavepoint(tdbb);
}