Commit 8d25d984 authored by Elvin Sindrilaru's avatar Elvin Sindrilaru

FST: Drop the fast_boot functionality. EOS-2600

parent dda8769c
......@@ -478,30 +478,6 @@ FmdDbMapHandler::ShutdownDB(eos::common::FileSystem::fsid_t fsid)
return false;
}
//------------------------------------------------------------------------------
// Mark as clean the DB corresponding to given the filesystem id
//------------------------------------------------------------------------------
bool
FmdDbMapHandler::MarkCleanDB(eos::common::FileSystem::fsid_t fsid)
{
eos_info("%s DB mark clean for fsid=%lu",
eos::common::DbMap::getDbType().c_str(), (unsigned long) fsid);
eos::common::RWMutexWriteLock lock(mMapMutex);
if (mDbMap.count(fsid)) {
if (DBfilename.count(fsid)) {
// If there was a complete boot procedure done, we remove the dirty flag
// set the mode back to S_IRWXU
if (chmod(DBfilename[fsid].c_str(), S_IRWXU)) {
eos_crit("failed to switch the %s database file to S_IRWXU errno=%d",
eos::common::DbMap::getDbType().c_str(), errno);
}
}
}
return false;
}
//------------------------------------------------------------------------------
// Return/create an Fmd struct for the given file/filesystem id for user
// uid/gid and layout layoutid
......
......@@ -126,15 +126,6 @@ public:
//----------------------------------------------------------------------------
bool ShutdownDB(eos::common::FileSystem::fsid_t fsid);
//----------------------------------------------------------------------------
//! Mark as clean the DB corresponding to given the file system id
//!
//! @param fsid file system id
//!
//! @return true if successful, otherwise false
//----------------------------------------------------------------------------
bool MarkCleanDB(eos::common::FileSystem::fsid_t fsid);
// Meta data handling functions
//----------------------------------------------------------------------------
......
......@@ -431,8 +431,6 @@ Storage::Boot(FileSystem* fs)
}
bool is_dirty = gFmdDbMapHandler.IsDirty(fsid);
bool fast_boot = (!getenv("EOS_FST_NO_FAST_BOOT")) ||
(strcmp(getenv("EOS_FST_NO_FAST_BOOT"), "1"));
bool resyncmgm = ((is_dirty) ||
(fs->GetLongLong("bootcheck") == eos::common::FileSystem::kBootResync));
bool resyncdisk = ((is_dirty) ||
......@@ -503,11 +501,6 @@ Storage::Boot(FileSystem* fs)
// Indicate the flag to unset the DB dirty flag at shutdown
gFmdDbMapHandler.StayDirty(fsid, false);
// Allows fast boot the next time
if (fast_boot) {
gFmdDbMapHandler.MarkCleanDB(fsid);
}
// Check if there is a label on the disk and if the configuration shows the
// same fsid + uuid
if (!CheckLabel(fs->GetPath(), fsid, uuid)) {
......@@ -890,7 +883,8 @@ Storage::GetNumDeletions()
// Get the filesystem associated with the given filesystem id
//------------------------------------------------------------------------------
FileSystem*
Storage::GetFileSystemById(eos::common::FileSystem::fsid_t fsid) {
Storage::GetFileSystemById(eos::common::FileSystem::fsid_t fsid)
{
return mFileSystemsMap[fsid];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment