Skip to content

Commit 2465dd6

Browse files
committed
try and fix elusive segfault
1 parent da105b4 commit 2465dd6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/core/db.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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)) {

0 commit comments

Comments
 (0)