Skip to content

Commit d0c4fc4

Browse files
cachedb_local: fix expiration of keys received through cluster sync
Credits to Kingsley Tart from CallTracks for reporting.
1 parent 806d356 commit d0c4fc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/cachedb_local/cachedb_local_replication.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ int receive_sync_request(int node_id)
205205
bin_push_str(sync_packet, &col->col_name);
206206
bin_push_str(sync_packet, &data->attr);
207207
bin_push_str(sync_packet, &data->value);
208-
bin_push_int(sync_packet, data->expires);
208+
bin_push_int(sync_packet, data->expires ?
209+
data->expires - get_ticks() : 0);
209210
}
210211
data = data->next;
211212
}

0 commit comments

Comments
 (0)