From 53b5215f79e6c07c08985a1e14d05702219a9c2b Mon Sep 17 00:00:00 2001 From: sageweil Date: Mon, 23 Jul 2007 18:21:39 +0000 Subject: [PATCH] clean up inode number ranges git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1542 29311d96-e01e-0410-9327-a35deaab8ce9 --- trunk/ceph/mds/IdAllocator.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/trunk/ceph/mds/IdAllocator.cc b/trunk/ceph/mds/IdAllocator.cc index e5ddae7cc3e6e..da9019f423f9e 100644 --- a/trunk/ceph/mds/IdAllocator.cc +++ b/trunk/ceph/mds/IdAllocator.cc @@ -135,8 +135,9 @@ void IdAllocator::reset() // use generic range. FIXME THIS IS CRAP free.clear(); - free.insert((uint64_t)0x10000000000 * (uint64_t)(mds->get_nodeid()+1), - (uint64_t)0x10000000000 * (uint64_t)(mds->get_nodeid()+2) - (uint64_t)1); + uint64_t start = (uint64_t)(mds->get_nodeid()+1) << 40; + uint64_t end = ((uint64_t)(mds->get_nodeid()+2) << 40) - 1; + free.insert(start, end); state = STATE_ACTIVE; } -- 2.39.5