Fix coverity CID 185522 and CID 185520.
*** CID 185522: Security best practices violations (STRING_OVERFLOW) /tmp/build/0e1b53a0/gpdb_src/src/backend/cdb/cdbtm.c: 2486 in gatherRMInDoubtTransactions() and *** CID 185520: Null pointer dereferences (FORWARD_NULL) /tmp/build/0e1b53a0/gpdb_src/src/backend/storage/ipc/procarray.c: 2251 in GetSnapshotData() This condition cannot happen as `GetDistributedSnapshotMaxCount()` doesn't return 0 for DTX_CONTEXT_QD_DISTRIBUTED_CAPABLE and hence `inProgressXidArray` will always be initialzed. hence marked as ignore in coverity but still worth adding Assert for the same.
Showing
想要评论请 注册 或 登录