]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
objecter: set pgls start_epoch field
authorSage Weil <sage.weil@dreamhost.com>
Thu, 12 May 2011 00:56:32 +0000 (17:56 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Thu, 12 May 2011 00:56:32 +0000 (17:56 -0700)
commita6417c6a3add62068d30de7b338c543bf74f7e8a
tree6ff5c28bfa4760cb4e78f8d6516956e44a3719c8
parent8a1644ef46ba571189741a6efd32c49c152a8e4a
objecter: set pgls start_epoch field

For each pg, start out with start_epoch = 0 in the first request.  For
subsequent requests, set it to the first reply's epoch.  This forces the
OSD to ignore our cookie and "restart" if the pg mapping changes and there
is a possibility of incomplete results.

The price we pay is the possibility of duplicate results.

Fixes: #1030
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osdc/Objecter.cc
src/osdc/Objecter.h