diff --git a/src/offload_policy.cpp b/src/offload_policy.cpp index a818b34..9a1aed0 100644 --- a/src/offload_policy.cpp +++ b/src/offload_policy.cpp @@ -217,7 +217,7 @@ void YezzeySetRelationExpiritySeg(Oid i_reloid, int i_relpolicy, auto meta = (Form_yezzey_offload_metadata)GETSTRUCT(oldtuple); values[Anum_offload_metadata_relpolicy - 1] = - Int32GetDatum(meta->relpolicy); + Int32GetDatum(i_relpolicy); values[Anum_offload_metadata_relext_time - 1] = TimestampGetDatum(meta->relext_time); @@ -379,4 +379,4 @@ void YezzeyLoadRealtion(Oid i_reloid) { /* make changes visible*/ CommandCounterIncrement(); -} \ No newline at end of file +}