]> granicus.if.org Git - postgresql/commitdiff
Remove dead InRecovery check.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 11 Sep 2014 19:43:56 +0000 (22:43 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 11 Sep 2014 19:43:56 +0000 (22:43 +0300)
With the new B-tree incomplete split handling in 9.4, _bt_insert_parent is
never called in recovery.

src/backend/access/nbtree/nbtinsert.c

index ecee5ac7f665fa42c7cb1d58e19f695f8cae0aa0..59d7006c94e9a308992d22f54bb09038408c2994 100644 (file)
@@ -1740,8 +1740,7 @@ _bt_insert_parent(Relation rel,
                {
                        BTPageOpaque lpageop;
 
-                       if (!InRecovery)
-                               elog(DEBUG2, "concurrent ROOT page split");
+                       elog(DEBUG2, "concurrent ROOT page split");
                        lpageop = (BTPageOpaque) PageGetSpecialPointer(page);
                        /* Find the leftmost page at the next level up */
                        pbuf = _bt_get_endpoint(rel, lpageop->btpo.level + 1, false);