]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: always return ENOENT on deleted snap
authorSage Weil <sage@inktank.com>
Thu, 9 Jan 2014 22:49:52 +0000 (14:49 -0800)
committerSage Weil <sage@inktank.com>
Tue, 14 Jan 2014 00:19:49 +0000 (16:19 -0800)
commit10547e6713ef2268e2f5985adf3c5712f57445c1
treea77fc5dd0f9a26fedf5f3868e89e3a0aa0124b61
parent8cab9e7657b5879f3ec3a42ae002d858b51c6cfe
osd/ReplicatedPG: always return ENOENT on deleted snap

Previously, if a snap was deleted but the clone was there and we hadn't
trimmed it yet, we would still return the data.  Instead, return ENOENT
unconditionally (even it's not removed yet).  This makes the behavior from
the client perspective more predictable and conistent.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc
src/test/librados/snapshots.cc