Skip to content

Commit

Permalink
lib-storage: Filling vsize to index on read used wrong size
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Jan 26, 2017
1 parent c52d5c0 commit 7f1ecb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-storage/index/index-mail.c
Expand Up @@ -487,7 +487,7 @@ bool index_mail_get_cached_virtual_size(struct index_mail *mail, uoff_t *size_r)
add it to index. */
if (vsize != NULL && *vsize == 0 &&
data->body_size.virtual_size < (uint32_t)-1) {
uint32_t vsize = data->body_size.virtual_size+1;
uint32_t vsize = data->virtual_size+1;
mail_index_update_ext(_mail->transaction->itrans, _mail->seq,
mail->vsize_ext_id, &vsize, NULL);
}
Expand Down

0 comments on commit 7f1ecb1

Please sign in to comment.