]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/osd_types: Remove Snapset::snaps compat (1/2)
authorMatan Breizman <mbreizma@redhat.com>
Sun, 19 Jan 2025 10:02:00 +0000 (10:02 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Sun, 19 Jan 2025 10:11:40 +0000 (10:11 +0000)
commit688bffe8ff35a95d113ad904c2c36029f0e2dfb8
tree572efa6f5877246a55d4f779c144de732c3faada
parent87648edee2ab3b21a0081cfecfa9380fdeac32f3
osd/osd_types: Remove Snapset::snaps compat (1/2)

In continuation to #28330
From Q release, we should no longer support pre O compatibilty.

Update SnapSet::encode/decode to use an empty instance instead to not
break backward compatibility.

See :
```
struct SnapSet {
  ...
  // NOTE: this is for pre-octopus compatibility only! remove in Q release
  std::vector<snapid_t> snaps;    // descending
```

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/osd/osd_types.cc
src/osd/osd_types.h