Skip to content

Commit

Permalink
dict-sql: Fix previous "merge sets" to flush at commit
Browse files Browse the repository at this point in the history
The last dict_set() within transaction was being ignored.
  • Loading branch information
sirainen committed Jan 15, 2017
1 parent 327fa45 commit bfd7b7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-dict/dict-sql.c
Expand Up @@ -864,6 +864,8 @@ sql_dict_transaction_commit(struct dict_transaction_context *_ctx, bool async,

if (ctx->prev_inc_map != NULL)
sql_dict_prev_inc_flush(ctx);
if (ctx->prev_set_map != NULL)
sql_dict_prev_set_flush(ctx);

if (ctx->failed) {
sql_transaction_rollback(&ctx->sql_ctx);
Expand Down

0 comments on commit bfd7b7e

Please sign in to comment.