diff --git a/src/osdc/ObjectCacher.cc b/src/osdc/ObjectCacher.cc index 7522c8258c8..f2b6d973674 100644 --- a/src/osdc/ObjectCacher.cc +++ b/src/osdc/ObjectCacher.cc @@ -118,6 +118,7 @@ ObjectCacher::BufferHead *ObjectCacher::Object::split(BufferHead *left, right->last_write_tid = left->last_write_tid; right->last_read_tid = left->last_read_tid; right->set_state(left->get_state()); + right->set_error(left->error); right->snapc = left->snapc; right->set_journal_tid(left->journal_tid); diff --git a/src/osdc/ObjectCacher.h b/src/osdc/ObjectCacher.h index d5a77cd18aa..2101692e140 100644 --- a/src/osdc/ObjectCacher.h +++ b/src/osdc/ObjectCacher.h @@ -161,6 +161,13 @@ class ObjectCacher { } int get_state() const { return state; } + inline int get_error() const { + return error; + } + inline void set_error(int _error) { + error = _error; + } + inline ceph_tid_t get_journal_tid() const { return journal_tid; }