]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: munge truncate_seq 1/truncate_size -1 to seq 0/size 0
authorSamuel Just <samuel.just@dreamhost.com>
Fri, 13 Jan 2012 19:15:42 +0000 (11:15 -0800)
committerSage Weil <sage@newdream.net>
Fri, 13 Jan 2012 20:34:01 +0000 (12:34 -0800)
commit0ded7e4dac9fb9357afe6bd2fa9f02d0a96ed06c
tree6c30fc070e17f9b1147735811af78f1c1e64adc8
parent224a65a776cce084c646e8888d605cf0800a4280
ReplicatedPG: munge truncate_seq 1/truncate_size -1 to seq 0/size 0

Truncate with seq 1 and size -1 is a noop.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Reviewed-by: Sage Weil <sage@newdream.net>
src/osd/ReplicatedPG.cc