提交 8f607376 编写于 作者: H Heikki Linnakangas

Remove unused fields from interconnect structs.

上级 1fe8f5c2
......@@ -240,7 +240,6 @@ void cdbconn_initSegmentDescriptor(SegmentDatabaseDescriptor *segdbDesc,
segdbDesc->conn = NULL;
segdbDesc->motionListener = 0;
segdbDesc->backendPid = 0;
segdbDesc->myAgent = NULL;
/*whoami*/
segdbDesc->whoami = NULL;
......
......@@ -175,7 +175,6 @@ static void test__createWriterGang(void **state)
assert_int_equal(segdb->errcode, 0);
assert_int_equal(segdb->error_message.len, 0);
assert_int_equal(segdb->motionListener, motionListener);
assert_int_equal(segdb->myAgent, NULL);
assert_int_equal(segdb->segindex, i);
validateCdbInfo(segdb->segment_database_info, segdb->segindex);
......@@ -225,7 +224,6 @@ static void test__createReaderGang(void **state)
assert_int_equal(segdb->errcode, 0);
assert_int_equal(segdb->error_message.len, 0);
assert_int_equal(segdb->motionListener, motionListener);
assert_int_equal(segdb->myAgent, NULL);
assert_int_equal(segdb->segindex, i);
validateCdbInfo(segdb->segment_database_info, segdb->segindex);
......
......@@ -2663,8 +2663,6 @@ startOutgoingUDPConnections(ChunkTransportState *transportStates,
conn->state = mcsSetupOutgoingConnection;
conn->route = i++;
conn->waitEOS = false;
(*pOutgoingCount)++;
}
......@@ -6600,7 +6598,7 @@ dumpConnections(ChunkTransportStateEntry *pEntry, const char *fname)
fprintf(ofile, "conns[%d] motNodeId=%d: remoteContentId=%d pid=%d sockfd=%d remote=%s local=%s "
"capacity=%d sentSeq=%d receivedAckSeq=%d consumedSeq=%d rtt=" UINT64_FORMAT
" dev=" UINT64_FORMAT " deadlockCheckBeginTime=" UINT64_FORMAT " route=%d msgSize=%d msgPos=%p"
" recvBytes=%d tupleCount=%d waitEOS=%d stillActive=%d stopRequested=%d "
" recvBytes=%d tupleCount=%d stillActive=%d stopRequested=%d "
"state=%d\n",
i, pEntry->motNodeId,
conn->remoteContentId,
......@@ -6610,7 +6608,7 @@ dumpConnections(ChunkTransportStateEntry *pEntry, const char *fname)
conn->localHostAndPort,
conn->capacity, conn->sentSeq, conn->receivedAckSeq, conn->consumedSeq,
conn->rtt, conn->dev, conn->deadlockCheckBeginTime, conn->route, conn->msgSize, conn->msgPos,
conn->recvBytes, conn->tupleCount, conn->waitEOS, conn->stillActive, conn->stopRequested,
conn->recvBytes, conn->tupleCount, conn->stillActive, conn->stopRequested,
conn->state);
fprintf(ofile, "conn_info [%s: seq %d extraSeq %d]: motNodeId %d, crc %d len %d "
"srcContentId %d dstDesContentId %d "
......
......@@ -57,7 +57,6 @@ typedef struct SegmentDatabaseDescriptor
uint32 motionListener; /* interconnect listener port */
int4 backendPid;
char *whoami; /* QE identifier for msgs */
struct SegmentDatabaseDescriptor * myAgent;
} SegmentDatabaseDescriptor;
......
......@@ -235,9 +235,6 @@ struct MotionConn
int tupleCount;
/* indicate whether main thread is waiting EOS ack on this connection */
bool waitEOS;
bool stillActive;
bool stopRequested;
......@@ -246,7 +243,6 @@ struct MotionConn
uint64 wakeup_ms;
struct icpkthdr conn_info;
bool isMirror;
struct CdbProcess *cdbProc;
int remoteContentId;
......@@ -274,9 +270,6 @@ struct MotionConn
uint64 stat_max_resent;
uint64 stat_count_dropped;
/* Indicate whether an EOS is received and acked. */
bool eosAcked;
/*
* used by the sender.
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册