]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix client id preallocation
authorSage Weil <sage@newdream.net>
Mon, 21 Sep 2009 21:06:15 +0000 (14:06 -0700)
committerSage Weil <sage@newdream.net>
Mon, 21 Sep 2009 21:06:15 +0000 (14:06 -0700)
Broken by b2c7655093821710aac2b4d35ccb1740429eb402

src/mon/ClientMonitor.cc

index 85c44f10cb8e9d19682a70d88e5dc9642d77b54f..d10355e6980a7d1fd80c98c8095f044a40107ac2 100644 (file)
@@ -63,7 +63,7 @@ bool ClientMonitor::update_from_paxos()
 
   paxos->stash_latest(paxosv, bl);
 
-  if (next_client <= client_map.next_client) {
+  if (next_client < 0) {
     dout(10) << "in-core next_client reset to " << client_map.next_client << dendl;
     next_client = client_map.next_client;
   }