XRootD
XrdThrottleFile.cc File Reference
+ Include dependency graph for XrdThrottleFile.cc:

Go to the source code of this file.

Macros

#define DO_LOADSHED
 
#define DO_THROTTLE(amount)
 

Macro Definition Documentation

◆ DO_LOADSHED

#define DO_LOADSHED
Value:
if (m_throttle.CheckLoadShed(m_loadshed)) \
{ \
unsigned port; \
std::string host; \
m_throttle.PerformLoadShed(m_loadshed, host, port); \
m_eroute.Emsg("File", "Performing load-shed for client", m_connection_id.c_str()); \
error.setErrInfo(port, host.c_str()); \
return SFS_REDIRECT; \
}
#define SFS_REDIRECT

Definition at line 10 of file XrdThrottleFile.cc.

◆ DO_THROTTLE

#define DO_THROTTLE (   amount)
Value:
DO_LOADSHED \
m_throttle.Apply(amount, 1, m_uid); \
XrdThrottleTimer xtimer = m_throttle.StartIOTimer();

Definition at line 20 of file XrdThrottleFile.cc.