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 authored and GitLab committed Jan 14, 2017
1 parent 22ed97c commit 858ce98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-dict/dict-sql.c
Expand Up @@ -853,6 +853,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->error != NULL) {
sql_transaction_rollback(&ctx->sql_ctx);
Expand Down

0 comments on commit 858ce98

Please sign in to comment.