Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit aae7af3

Browse files
committed
Remove dead InRecovery check.
With the new B-tree incomplete split handling in 9.4, _bt_insert_parent is never called in recovery.
1 parent 849462a commit aae7af3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/access/nbtree/nbtinsert.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1740,8 +1740,7 @@ _bt_insert_parent(Relation rel,
17401740
{
17411741
BTPageOpaque lpageop;
17421742

1743-
if (!InRecovery)
1744-
elog(DEBUG2, "concurrent ROOT page split");
1743+
elog(DEBUG2, "concurrent ROOT page split");
17451744
lpageop = (BTPageOpaque) PageGetSpecialPointer(page);
17461745
/* Find the leftmost page at the next level up */
17471746
pbuf = _bt_get_endpoint(rel, lpageop->btpo.level + 1, false);

0 commit comments

Comments
 (0)