summaryrefslogtreecommitdiff
path: root/server/dispatch.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-02-05 19:07:29 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-02-05 19:07:29 +0000
commit729976f3b548fe26f997c0c8bfccdad76e8d65ad (patch)
treef2ed4a64e605ad9756107d0e7d297c376ea3d366 /server/dispatch.c
parent9643b66e425864e859b22cfb463f5763eb9960f7 (diff)
Barf if requeueing and not concurrent.
Diffstat (limited to 'server/dispatch.c')
-rw-r--r--server/dispatch.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/server/dispatch.c b/server/dispatch.c
index 9cf3b24..8e0cee9 100644
--- a/server/dispatch.c
+++ b/server/dispatch.c
@@ -89,7 +89,8 @@ handle_packet()
if (otherservers[me_server_idx].zs_update_queue) {
/* something here for me; take care of it */
- zdbug((LOG_DEBUG, "internal queue process"));
+ if (zdebug)
+ syslog(LOG_DEBUG, "internal queue process");
pending = otherservers[me_server_idx].zs_update_queue->q_forw;
host = hostm_find_host(&(pending->pend_who.sin_addr));
@@ -232,8 +233,14 @@ struct sockaddr_in *who;
}
if (dispatched) {
- if (status == ZSRV_REQUEUE)
+ if (status == ZSRV_REQUEUE) {
+#ifdef CONCURRENT
server_self_queue(notice, auth, who);
+#else
+ syslog(LOG_ERR, "requeue while not concurr");
+ abort();
+#endif CONCURRENT
+ }
return;
}
/* oh well, do the dirty work */