Skip to content

Commit 959ea7f

Browse files
committed
Remove useless code.
Apparent copy-and-pasteo in standby_desc_invalidations() had two entries for msg->id == SHAREDINVALRELMAP_ID. Aleksander Alekseev Discussion: <20160923090814.GB1238@e733>
1 parent 8e6b4ee commit 959ea7f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/backend/access/rmgrdesc/standbydesc.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,11 @@ standby_desc_invalidations(StringInfo buf,
121121
else if (msg->id == SHAREDINVALSMGR_ID)
122122
appendStringInfoString(buf, " smgr");
123123
/* not expected, but print something anyway */
124-
else if (msg->id == SHAREDINVALRELMAP_ID)
125-
appendStringInfoString(buf, " relmap");
126124
else if (msg->id == SHAREDINVALRELMAP_ID)
127125
appendStringInfo(buf, " relmap db %u", msg->rm.dbId);
128126
else if (msg->id == SHAREDINVALSNAPSHOT_ID)
129127
appendStringInfo(buf, " snapshot %u", msg->sn.relId);
130128
else
131-
appendStringInfo(buf, " unknown id %d", msg->id);
129+
appendStringInfo(buf, " unrecognized id %d", msg->id);
132130
}
133131
}

0 commit comments

Comments
 (0)