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:
4208d2a
)
Lowered reference counting to debug
author
Dennis Schafroth
<dennis@indexdata.com>
Thu, 20 May 2010 13:15:15 +0000
(15:15 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Thu, 20 May 2010 13:15:15 +0000
(15:15 +0200)
src/client.c
patch
|
blob
|
history
diff --git
a/src/client.c
b/src/client.c
index
2ebab5e
..
064754a
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-78,7
+78,7
@@
static void client_use(int delta)
yaz_mutex_enter(g_mutex);
no_clients += delta;
yaz_mutex_leave(g_mutex);
yaz_mutex_enter(g_mutex);
no_clients += delta;
yaz_mutex_leave(g_mutex);
- yaz_log(YLOG_LOG, "%s clients=%d", delta > 0 ? "INC" : "DEC", no_clients);
+ yaz_log(YLOG_DEBUG, "%s clients=%d", delta > 0 ? "INC" : "DEC", no_clients);
}
#else
#define client_use(x)
}
#else
#define client_use(x)
@@
-638,7
+638,7
@@
void client_unlock(struct client *c)
void client_incref(struct client *c)
{
pazpar2_incref(&c->ref_count, c->mutex);
void client_incref(struct client *c)
{
pazpar2_incref(&c->ref_count, c->mutex);
- yaz_log(YLOG_LOG, "client_incref c=%p %s cnt=%d",
+ yaz_log(YLOG_DEBUG, "client_incref c=%p %s cnt=%d",
c, client_get_url(c), c->ref_count);
}
c, client_get_url(c), c->ref_count);
}
@@
-646,7
+646,7
@@
int client_destroy(struct client *c)
{
if (c)
{
{
if (c)
{
- yaz_log(YLOG_LOG, "client_destroy c=%p %s cnt=%d",
+ yaz_log(YLOG_DEBUG, "client_destroy c=%p %s cnt=%d",
c, client_get_url(c), c->ref_count);
if (!pazpar2_decref(&c->ref_count, c->mutex))
{
c, client_get_url(c), c->ref_count);
if (!pazpar2_decref(&c->ref_count, c->mutex))
{