Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/prepare_host_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ void PrepareHostHandler::prepare(uv_loop_t* loop, const ConnectionSettings& sett
}

void PrepareHostHandler::on_close(Connection* connection) {
callback_(this);

dec_ref(); // The event loop is done with this handler
}

Expand Down
8 changes: 4 additions & 4 deletions tests/src/integration/tests/test_prepare_on.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ CASSANDRA_INTEGRATION_TEST_F(PrepareOnUpAndAddTests, NotPreparedOnUpWhenDisabled

// Wait for the node to become available and verify no statements have been
// prepared
wait_for_node_on_session(session, 1);
wait_for_node_on_session(session_for_node(1), 1);
prepared_statements_are_not_present(1);
}

Expand Down Expand Up @@ -404,7 +404,7 @@ CASSANDRA_INTEGRATION_TEST_F(PrepareOnUpAndAddTests, PreparedOnUpWhenEnabled) {

// Wait for the node to become available and verify that the statements
// in the prepared metadata cache have been prepared
wait_for_node_on_session(session, 1);
wait_for_node_on_session(session_for_node(1), 1);
prepared_statements_are_present(1);
}

Expand Down Expand Up @@ -435,7 +435,7 @@ CASSANDRA_INTEGRATION_TEST_F(PrepareOnUpAndAddTests, NotPreparedOnAddWhenDisable

// Wait for the new node to become available and verify no statements have
// been prepared
wait_for_node_on_session(session, node);
wait_for_node_on_session(session_for_node(node), node);
prepared_statements_are_not_present(node);
}

Expand Down Expand Up @@ -466,6 +466,6 @@ CASSANDRA_INTEGRATION_TEST_F(PrepareOnUpAndAddTests, PreparedOnAddWhenEnabled) {

// Wait for the new node to become available and verify that the statements
// in the prepared metadata cache have been prepared
wait_for_node_on_session(session, node);
wait_for_node_on_session(session_for_node(node), node);
prepared_statements_are_present(node);
}