From 35dc047356f0c18a8920eb63361a688d921edcf3 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 21 Sep 2009 14:06:15 -0700 Subject: [PATCH] mon: fix client id preallocation Broken by b2c7655093821710aac2b4d35ccb1740429eb402 --- src/mon/ClientMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/ClientMonitor.cc b/src/mon/ClientMonitor.cc index 85c44f10cb8e9..d10355e6980a7 100644 --- a/src/mon/ClientMonitor.cc +++ b/src/mon/ClientMonitor.cc @@ -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; } -- 2.39.5