Skip to content

Commit

Permalink
AER-6567 - correct flash-index logic to avoid submitting to sindex rl…
Browse files Browse the repository at this point in the history
…ist on non-durable delete from client, fixing improvement done in hotfix AER-6562.
  • Loading branch information
gooding470 committed Aug 22, 2022
1 parent 32a0efb commit 106da7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions as/src/transaction/delete.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ drop_master(as_transaction* tr, as_index_ref* r_ref, rw_request* rw)

bool check_key = as_transaction_has_key(tr);

if (ns->storage_data_in_memory || filter_exp != NULL || check_key) {
if (filter_exp != NULL || check_key) {
as_storage_rd rd;
as_storage_record_open(ns, r, &rd);

Expand Down Expand Up @@ -590,10 +590,10 @@ drop_master(as_transaction* tr, as_index_ref* r_ref, rw_request* rw)
}

as_storage_record_close(&rd);
}

if (ns->storage_data_in_memory || ns->xmem_type == CF_XMEM_TYPE_FLASH) {
remove_from_sindex(ns, r_ref);
}
if (ns->storage_data_in_memory || ns->xmem_type == CF_XMEM_TYPE_FLASH) {
remove_from_sindex(ns, r_ref);
}

as_set_index_delete(ns, tree, as_index_get_set_id(r), r_ref->r_h);
Expand Down

0 comments on commit 106da7c

Please sign in to comment.