projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Translates diagnostic 1 and 2
[pazpar2-moved-to-github.git]
/
src
/
session.c
diff --git
a/src/session.c
b/src/session.c
index
ea09249
..
4d64e32
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-446,6
+446,7
@@
void session_alert_watch(struct session *s, int what)
s->watchlist[what].obs = 0;
session_leave(s);
s->watchlist[what].obs = 0;
session_leave(s);
+ yaz_log(YLOG_DEBUG, "session_alert_watch: %d calling function: %p", what, fun);
fun(data);
}
else
fun(data);
}
else
@@
-509,7
+510,7
@@
int session_active_clients(struct session *s)
return res;
}
return res;
}
-int session_preferred_clients_ready(struct session *s)
+int session_is_preferred_clients_ready(struct session *s)
{
struct client_list *l;
int res = 0;
{
struct client_list *l;
int res = 0;
@@
-517,7
+518,7
@@
int session_preferred_clients_ready(struct session *s)
for (l = s->clients; l; l = l->next)
if (client_is_active_preferred(l->client))
res++;
for (l = s->clients; l; l = l->next)
if (client_is_active_preferred(l->client))
res++;
-
+ yaz_log(YLOG_DEBUG, "%p Session has %d active preferred clients.", s, res);
return res == 0;
}
return res == 0;
}