]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: fix atomic_t test
authorSage Weil <sage@newdream.net>
Fri, 23 Apr 2010 21:30:23 +0000 (14:30 -0700)
committerSage Weil <sage@newdream.net>
Fri, 23 Apr 2010 21:30:23 +0000 (14:30 -0700)
Missed this in merge 50285ecf5c404b456a0427eb7d6d1097ffc0ea83

src/msg/SimpleMessenger.cc

index 5e33f9266a0a16c6fbf4937256682775f1a26621..d9df0cf146d88002d01fbef15aca4caccc717b59 100644 (file)
@@ -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();
   {