File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -278,12 +278,11 @@ static int db_expire_cursor_table(db_table* table){
278278 db_entry_incref (l);
279279 db_entry_handle_delete (l);
280280 db_entry_deref (l);
281- end_early |= true ;
282281 }
283282 else
284283 {
285284 db_entry_handle_delete (l);
286- end_early |= true ;
285+ end_early = false ;
287286 }
288287
289288 if (end_early){
@@ -941,7 +940,7 @@ static void db_close_table_key_space(){
941940 db_table* table;
942941
943942 // make 128 attempts to clear the tablespace
944- // table deletions can cause resizing and tables to be skipped in the iteration
943+ // table deletions can cause resizing and tables to be skipped in the iteration (todo: really?)
945944 for (int i = 0 ; i < 128 && kh_size (db.tables ); i++){
946945 for (khiter_t ke = kh_begin (db.tables ); ke < kh_end (db.tables ); ++ke){
947946 if (kh_exist (db.tables , ke)) {
You can’t perform that action at this time.
0 commit comments