MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / refresh_schema_and_set_result

Function refresh_schema_and_set_result

cassandra/cluster.py:4314–4323  ·  view source on GitHub ↗
(control_conn, response_future, connection, **kwargs)

Source from the content-addressed store, hash-verified

4312
4313
4314def refresh_schema_and_set_result(control_conn, response_future, connection, **kwargs):
4315 try:
4316 log.debug("Refreshing schema in response to schema change. "
4317 "%s", kwargs)
4318 response_future.is_schema_agreed = control_conn._refresh_schema(connection, **kwargs)
4319 except Exception:
4320 log.exception("Exception refreshing schema in response to schema change:")
4321 response_future.session.submit(control_conn.refresh_schema, **kwargs)
4322 finally:
4323 response_future._set_final_result(None)
4324
4325
4326class ResponseFuture(object):

Callers

nothing calls this directly

Calls 3

_refresh_schemaMethod · 0.80
_set_final_resultMethod · 0.80
submitMethod · 0.45

Tested by

no test coverage detected