projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bc20cb5
)
Watch logging. Rename function
author
Dennis Schafroth
<dennis@indexdata.com>
Fri, 3 Sep 2010 11:32:44 +0000
(13:32 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Fri, 3 Sep 2010 11:32:44 +0000
(13:32 +0200)
src/session.c
patch
|
blob
|
history
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;
}