From: Sage Weil Date: Fri, 16 May 2008 21:54:22 +0000 (-0700) Subject: osd: swap instead of copy big query list X-Git-Tag: v0.3~209^2~41 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ac1ed4f13867b94f13711186f0423e528af66c26;p=ceph.git osd: swap instead of copy big query list --- diff --git a/src/messages/MOSDPGQuery.h b/src/messages/MOSDPGQuery.h index 870f41eae88e..5723e05a81eb 100644 --- a/src/messages/MOSDPGQuery.h +++ b/src/messages/MOSDPGQuery.h @@ -32,7 +32,8 @@ class MOSDPGQuery : public Message { MOSDPGQuery() {} MOSDPGQuery(epoch_t e, map& ls) : Message(MSG_OSD_PG_QUERY), - epoch(e), pg_list(ls) { + epoch(e) { + pg_list.swap(ls); } const char *get_type_name() { return "PGq"; } diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 7874071e33e2..d1341a00e60c 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -2245,7 +2245,6 @@ void OSD::handle_pg_notify(MOSDPGNotify *m) * NOTE: called with opqueue active. */ - void OSD::_process_pg_info(epoch_t epoch, int from, PG::Info &info, PG::Log &log,