From: Pavan Deolasee Date: Thu, 12 May 2016 08:14:27 +0000 (+0530) Subject: Revert "It may happen that we try to read the status of a transaction" X-Git-Tag: XL9_5_R1_1~1 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=e473a1975b968e94a8006d015b1256e5bf9ec1ac;p=postgres-xl.git Revert "It may happen that we try to read the status of a transaction" This reverts commit d3356cd451664f3585706f0ae817e0037814ec6e. Other bug fixes in this area has now fixed the underlying problem and hence we don't need this change. --- diff --git a/src/backend/access/transam/slru.c b/src/backend/access/transam/slru.c index bf19338c12..89c56a1b78 100644 --- a/src/backend/access/transam/slru.c +++ b/src/backend/access/transam/slru.c @@ -410,17 +410,6 @@ SimpleLruReadPage(SlruCtl ctl, int pageno, bool write_ok, /* Do the read */ ok = SlruPhysicalReadPage(ctl, pageno, slotno); - /* - * If we failed, it may be because we tried to read the status - * before the page was created. Retry once - */ - if (!ok && slru_errcause == SLRU_READ_FAILED) - { - ExtendLogs(xid); - /* Retry */ - ok = SlruPhysicalReadPage(ctl, pageno, slotno); - } - /* Set the LSNs for this newly read-in page to zero */ SimpleLruZeroLSNs(ctl, slotno);