mirror of
https://github.com/ceph/ceph
synced 2025-01-01 16:42:29 +00:00
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:
commit
ae186b8655
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user