Skip to content

Commit

Permalink
Update offload_policy to correct value when offload non-first time
Browse files Browse the repository at this point in the history
  • Loading branch information
reshke authored Apr 9, 2024
1 parent 6a81276 commit 3985ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/offload_policy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -379,4 +379,4 @@ void YezzeyLoadRealtion(Oid i_reloid) {

/* make changes visible*/
CommandCounterIncrement();
}
}

0 comments on commit 3985ccc

Please sign in to comment.