]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: include history in mkpg INFO query
authorSage Weil <sage@newdream.net>
Mon, 19 May 2008 18:15:02 +0000 (11:15 -0700)
committerSage Weil <sage@newdream.net>
Mon, 19 May 2008 18:15:02 +0000 (11:15 -0700)
src/osd/OSD.cc

index 39e3736ea8aeea2d277d9c2979c4ab90a8b243e3..b611950107c8f81a75f1cda906ad4619ffdf4eee 100644 (file)
@@ -2106,10 +2106,11 @@ void OSD::handle_pg_create(MOSDPGCreate *m)
     // poll priors
     set<int>& pset = creating_pgs[pgid].prior;
     dout(10) << "mkpg " << pgid << " e" << created
+            << " h " << history
             << " : querying priors " << pset << dendl;
     for (set<int>::iterator p = pset.begin(); p != pset.end(); p++) 
       if (osdmap->is_up(*p))
-       query_map[*p][pgid].type = PG::Query::INFO;
+       query_map[*p][pgid] = PG::Query(PG::Query::INFO, history);
     
     PG *pg = try_create_pg(pgid, t);
     if (pg) {