]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: use single helper for pg creation
authorSage Weil <sage.weil@dreamhost.com>
Mon, 13 Feb 2012 04:47:02 +0000 (20:47 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Mon, 13 Feb 2012 04:48:21 +0000 (20:48 -0800)
commitc97c14f6de4d1ef0772a1a1e0626e1cc08baf443
treedf778bb2c3e96dc4dbe0b12b93dc5c608af7d08d
parent04f175f818abaab38b7d83a099a3587d0fa85d28
osd: use single helper for pg creation

Take a bool so that we initialize the last_epoch_started properly on
newly created PGs.  This gives us a single code path for all new PGs.

We drop the clear_primary_state(), which has no effect, given that this is
a newly constructed PG.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/OSD.cc
src/osd/OSD.h