MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / stmt_cache_finalize_entry

Function stmt_cache_finalize_entry

db/sql_stmt_cache.c:143–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143static int stmt_cache_finalize_entry(stmt_cache_entry_t *entry)
144{
145 sqlite3_finalize(entry->stmt);
146 if (entry->qd_func && entry->stmt_data) {
147 entry->qd_func(NULL, &entry->stmt_data, NULL, QUERY_STMT_DATA,
148 QUERY_DATA_DELETE);
149 }
150 stmt_cache_free_entry(entry);
151 return 0;
152}
153
154static int stmt_cache_delete_last_entry(stmt_cache_t *stmt_cache, void *list)
155{

Callers 3

stmt_cache_put_intFunction · 0.85

Calls 2

sqlite3_finalizeFunction · 0.85
stmt_cache_free_entryFunction · 0.85

Tested by

no test coverage detected