Merge PR #43881 into master

* refs/pull/43881/head:
	osdc: add set_error in BufferHead, when split set_error to right

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2021-12-22 14:03:37 -05:00
commit ae186b8655
No known key found for this signature in database
GPG Key ID: BE69BB7D36E459B4
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -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;
}