MCPcopy Create free account
hub / github.com/ElementsProject/lightning / db_assert_no_outstanding_statements

Function db_assert_no_outstanding_statements

db/utils.c:261–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void db_assert_no_outstanding_statements(struct db *db)
262{
263 struct db_stmt *stmt;
264
265 stmt = list_top(&db->pending_statements, struct db_stmt, list);
266 if (stmt)
267 db_fatal(stmt->db, "Unfinalized statement %s", stmt->location);
268}
269
270static void destroy_db(struct db *db)
271{

Callers 2

destroy_dbFunction · 0.85
db_commit_transactionFunction · 0.85

Calls 1

db_fatalFunction · 0.85

Tested by

no test coverage detected