Re: [PATCH] osd/ReplicatedPG: set truncate_seq when handling CEPH_OSD_OP_APPEND

2012-09-12 Thread Sage Weil
Hi, On Tue, 11 Sep 2012, Yan, Zheng wrote: > From: "Yan, Zheng" > > We need set truncate_seq when redirect the newop to CEPH_OSD_OP_WRITE, > otherwise the code handles CEPH_OSD_OP_WRITE may quietly drop the data. > > Signed-off-by: Yan, Zheng Applying. This is correct, but I don't think ther

[PATCH] osd/ReplicatedPG: set truncate_seq when handling CEPH_OSD_OP_APPEND

2012-09-10 Thread Yan, Zheng
From: "Yan, Zheng" We need set truncate_seq when redirect the newop to CEPH_OSD_OP_WRITE, otherwise the code handles CEPH_OSD_OP_WRITE may quietly drop the data. Signed-off-by: Yan, Zheng --- src/osd/ReplicatedPG.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osd/ReplicatedPG.cc b/