]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: direct reads on SNAPDIR to either head or snapdir
authorSage Weil <sage@inktank.com>
Tue, 26 Mar 2013 17:31:19 +0000 (10:31 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 1 Apr 2013 06:32:40 +0000 (23:32 -0700)
commit556d33442fb6cabe24823fc654b85341b632ca36
treec3e24086d8f19a4af090bdaff980260c1d8b6b5b
parentb64bb5f8608c87f4c1e7eb10e87a563c7c88831d
osd: direct reads on SNAPDIR to either head or snapdir

The list_snaps operation needs to look at the SnapSet, and is logically
querying all revisions of the object.  Make requests to SNAPDIR be
read-only, and grab the head or snapdir obc transparently (whichever one
exists).  This allows us to list snaps when, say, the head does not
exist, but there are in fact snaps.

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