static STDIRSELECT storeDirSelectSwapDirRoundRobin;
static STDIRSELECT storeDirSelectSwapDirLeastLoad;
-/*
+/**
* This function pointer is set according to 'store_dir_select_algorithm'
* in squid.conf.
*/
STDIRSELECT *storeDirSelectSwapDir = storeDirSelectSwapDirLeastLoad;
-/*
+/**
* This new selection scheme simply does round-robin on all SwapDirs.
* A SwapDir is skipped if it is over the max_size (100%) limit, or
* overloaded.
return -1;
}
-/*
+/**
* Spread load across all of the store directories
*
* Note: We should modify this later on to prefer sticking objects
INDEXSD(dirn)->closeLog();
}
-/*
+/**
* storeDirWriteCleanLogs
*
* Writes a "clean" swap log file from in-memory metadata.
/* Globals that should be moved to some Store::UFS-specific logging module */
-/*
+/**
* An entry written to the swap log MUST have the following
* properties.
* 1. It MUST be a public key. It does no good to log