MCPcopy Create free account
hub / github.com/apache/cloudberry / pqWriteReady

Function pqWriteReady

src/interfaces/libpq/fe-misc.c:1140–1144  ·  view source on GitHub ↗

* pqWriteReady: is select() saying the file is ready to write? * Returns -1 on failure, 0 if not ready, 1 if ready. */

Source from the content-addressed store, hash-verified

1138 * Returns -1 on failure, 0 if not ready, 1 if ready.
1139 */
1140int
1141pqWriteReady(PGconn *conn)
1142{
1143 return pqSocketCheck(conn, 0, 1, (time_t) 0);
1144}
1145
1146/*
1147 * Checks a socket, using poll or select, for data to be read, written,

Callers

nothing calls this directly

Calls 1

pqSocketCheckFunction · 0.85

Tested by

no test coverage detected