Unverified Commit 126cbe1f authored by Mike Gabriel's avatar Mike Gabriel

Merge branch 'uli42-pr/remove_requestlog' into 3.6.x

parents 789d3a37 0eab060d
...@@ -416,12 +416,6 @@ Dispatch(void) ...@@ -416,12 +416,6 @@ Dispatch(void)
} }
client->sequence++; client->sequence++;
#ifdef DEBUG
if (client->requestLogIndex == MAX_REQUEST_LOG)
client->requestLogIndex = 0;
client->requestLog[client->requestLogIndex] = MAJOROP;
client->requestLogIndex++;
#endif
if (result > (maxBigRequestSize << 2)) if (result > (maxBigRequestSize << 2))
result = BadLength; result = BadLength;
else else
...@@ -3622,9 +3616,6 @@ void InitClient(ClientPtr client, int i, void * ospriv) ...@@ -3622,9 +3616,6 @@ void InitClient(ClientPtr client, int i, void * ospriv)
client->numSaved = 0; client->numSaved = 0;
client->saveSet = (SaveSetElt *)NULL; client->saveSet = (SaveSetElt *)NULL;
client->noClientException = Success; client->noClientException = Success;
#ifdef DEBUG
client->requestLogIndex = 0;
#endif
client->requestVector = InitialVector; client->requestVector = InitialVector;
client->osPrivate = ospriv; client->osPrivate = ospriv;
client->swapped = FALSE; client->swapped = FALSE;
......
...@@ -468,12 +468,6 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio ...@@ -468,12 +468,6 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
#endif #endif
client->sequence++; client->sequence++;
#ifdef DEBUG
if ((client->requestLogIndex >= MAX_REQUEST_LOG) || (client->requestLogIndex <= 0))
client->requestLogIndex = 0;
client->requestLog[client->requestLogIndex] = MAJOROP;
client->requestLogIndex++;
#endif
if (result > (maxBigRequestSize << 2)) if (result > (maxBigRequestSize << 2))
result = BadLength; result = BadLength;
else else
......
...@@ -37,10 +37,6 @@ SOFTWARE. ...@@ -37,10 +37,6 @@ SOFTWARE.
* translation from client ids to server addresses. * translation from client ids to server addresses.
*/ */
#ifdef DEBUG
#define MAX_REQUEST_LOG 100
#endif
extern CallbackListPtr ClientStateCallback; extern CallbackListPtr ClientStateCallback;
typedef struct { typedef struct {
...@@ -121,10 +117,6 @@ typedef struct _Client { ...@@ -121,10 +117,6 @@ typedef struct _Client {
KeyCode minKC,maxKC; KeyCode minKC,maxKC;
#endif #endif
#ifdef DEBUG
unsigned char requestLog[MAX_REQUEST_LOG];
int requestLogIndex;
#endif
unsigned long replyBytesRemaining; unsigned long replyBytesRemaining;
#ifdef XCSECURITY #ifdef XCSECURITY
XID authId; XID authId;
......
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