mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
osd/ECTransaction,ReplicatedBackend: create op is new in octopus
Not nautilus! Fixes: https://tracker.ceph.com/issues/40755 Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
3515c2aa41
commit
deed241fcc
@ -265,7 +265,7 @@ void ECTransaction::generate_transactions(
|
||||
[&](const PGTransaction::ObjectOperation::Init::None &) {},
|
||||
[&](const PGTransaction::ObjectOperation::Init::Create &op) {
|
||||
for (auto &&st: *transactions) {
|
||||
if (require_osd_release >= ceph_release_t::nautilus) {
|
||||
if (require_osd_release >= ceph_release_t::octopus) {
|
||||
st.second.create(
|
||||
coll_t(spg_t(pgid, st.first)),
|
||||
ghobject_t(oid, ghobject_t::NO_GEN, st.first));
|
||||
|
@ -324,7 +324,7 @@ void generate_transaction(
|
||||
[&](const PGTransaction::ObjectOperation::Init::None &) {
|
||||
},
|
||||
[&](const PGTransaction::ObjectOperation::Init::Create &op) {
|
||||
if (require_osd_release >= ceph_release_t::nautilus) {
|
||||
if (require_osd_release >= ceph_release_t::octopus) {
|
||||
t->create(coll, goid);
|
||||
} else {
|
||||
t->touch(coll, goid);
|
||||
|
Loading…
Reference in New Issue
Block a user