From: Sage Weil Date: Fri, 23 Apr 2010 21:30:23 +0000 (-0700) Subject: msgr: fix atomic_t test X-Git-Tag: v0.22~623 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4fda5f922b7d97bfb9a3eeb5841c509096854425;p=ceph.git msgr: fix atomic_t test Missed this in merge 50285ecf5c404b456a0427eb7d6d1097ffc0ea83 --- diff --git a/src/msg/SimpleMessenger.cc b/src/msg/SimpleMessenger.cc index 5e33f9266a0a..d9df0cf146d8 100644 --- a/src/msg/SimpleMessenger.cc +++ b/src/msg/SimpleMessenger.cc @@ -2290,9 +2290,10 @@ void SimpleMessenger::submit_message(Message *m, Pipe *pipe) void SimpleMessenger::submit_message(Message *m, const entity_addr_t& dest_addr, int dest_type, bool lazy) { - assert(m->nref.test() == 1); //this is just to make sure that a changeset - //is working properly; if you start using the refcounting more and have multiple - //people hanging on to a message, ditch the assert! + // this is just to make sure that a changeset is working properly; + // if you start using the refcounting more and have multiple people + // hanging on to a message, ditch the assert! + assert(m->nref.read() == 1); lock.Lock(); {