osdc: don't set RETRY flag on all reads

This commit is contained in:
Sage Weil 2008-07-08 10:39:11 -07:00
parent 095ff6a28e
commit c6b7dea887

View File

@ -135,7 +135,12 @@ public:
void set_want_ack(bool b) { head.flags = get_flags() | CEPH_OSD_OP_ACK; }
void set_want_commit(bool b) { head.flags = get_flags() | CEPH_OSD_OP_SAFE; }
void set_retry_attempt(bool a) { head.flags = get_flags() | CEPH_OSD_OP_RETRY; }
void set_retry_attempt(bool a) {
if (a)
head.flags = head.flags | CEPH_OSD_OP_RETRY;
else
head.flags = head.flags & ~CEPH_OSD_OP_RETRY;
}
// marshalling
virtual void decode_payload() {