MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / handleLinkIOError

Function handleLinkIOError

src/cluster.cpp:2296–2298  ·  view source on GitHub ↗

This function is called when we detect the link with this node is lost. We set the node as no longer connected. The Cluster Cron will detect this connection and will try to get it connected again. Instead if the node is a temporary node used to accept a query, we completely free the node on error. */

Source from the content-addressed store, hash-verified

2294 Instead if the node is a temporary node used to accept a query, we
2295 completely free the node on error. */
2296void handleLinkIOError(clusterLink *link) {
2297 freeClusterLink(link);
2298}
2299
2300/* Send data. This is handled using a trivial send buffer that gets
2301 * consumed by write(). We don't try to optimize this for speed too much

Callers 2

clusterWriteHandlerFunction · 0.85
clusterReadHandlerFunction · 0.85

Calls 1

freeClusterLinkFunction · 0.85

Tested by

no test coverage detected