aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/logicalfuncs.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2016-09-04 15:02:06 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2016-09-04 15:02:06 +0300
commite21db14b8a6696a2b704b89df9c4be9cd0ea8a33 (patch)
tree29168f8a80e7d7d14bec76c0cedbe8740dfd3b6a /src/backend/replication/logical/logicalfuncs.c
parent6591f4226c81104f7746da6a5c00519919c560ae (diff)
downloadpostgresql-e21db14b8a6696a2b704b89df9c4be9cd0ea8a33.tar.gz
postgresql-e21db14b8a6696a2b704b89df9c4be9cd0ea8a33.zip
Clarify the new Red-Black post-order traversal code a bit.
Coverity complained about the for(;;) loop, because it never actually iterated. It was used just to be able to use "break" to exit it early. I agree with Coverity, that's a bit confusing, so refactor the code to use if-else instead. While we're at it, use a local variable to hold the "current" node. That's shorter and clearer than referring to "iter->last_visited" all the time.
Diffstat (limited to 'src/backend/replication/logical/logicalfuncs.c')
0 files changed, 0 insertions, 0 deletions