void index_free(struct index *idx) { _index_flush(idx); pthread_attr_destroy(&idx->attr); log_free(idx->log); close(idx->db_rfd); sst_free(idx->sst); free(idx->park); free(idx); }
static void ontx_end(sst_t* self) { sst_free(self); }
static void ondst_end(sst_t* self) { end_dst_called++; sst_free(self); }
static void onreversetx_end(sst_t* self) { end_reversetx_called++; sst_free(self); }
static void onuppertx_end(sst_t* self) { end_uppertx_called++; sst_free(self); }
static void onsrc_end(sst_t* self) { end_src_called++; sst_free(self); }