Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Always print inRecovery() => EBUSY in meta

han howard
2009-08-11
2013-04-25
  • han howard
    han howard
    2009-08-11

    Just found My log always print as follows,      How can I do for optimized it?  

    08-11-2009 11:30:00.006 INFO - (LayoutManager.cc:981) GetChunkReadLease: inRecovery() => EBUSY
    08-11-2009 11:30:00.006 INFO - (LayoutManager.cc:981) GetChunkReadLease: inRecovery() => EBUSY
    08-11-2009 11:30:00.006 INFO - (LayoutManager.cc:981) GetChunkReadLease: inRecovery() => EBUSY

        if (InRecovery()) {
            KFS_LOG_INFO("GetChunkReadLease: inRecovery() => EBUSY");
            return -EBUSY;
        }

            bool InRecovery()
            {
                if (mChunkServers.size() < mMinChunkserversToExitRecovery)
                    return true;
                time_t now = time(0);
                return now - mRecoveryStartTime <=
                    KFS::LEASE_INTERVAL_SECS;
            }