Обсуждение: pgsql: Fix bug in wasender's xlogid boundary handling, reported by Erik

Поиск
Список
Период
Сортировка

pgsql: Fix bug in wasender's xlogid boundary handling, reported by Erik

От
heikki@postgresql.org (Heikki Linnakangas)
Дата:
Log Message:
-----------
Fix bug in wasender's xlogid boundary handling, reported by Erik Rijkers.
LogwrtRqst.Write can be set to non-existent FF log segment, we mustn't
try to send that in XLogSend().

Also fix similar bug in ReadRecord(), which I just introduced in the
ReadRecord() refactoring patch.

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        xlog.c (r1.362 -> r1.363)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xlog.c?r1=1.362&r2=1.363)
    pgsql/src/backend/replication:
        walsender.c (r1.3 -> r1.4)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/replication/walsender.c?r1=1.3&r2=1.4)