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
Using recursive session lock
[pazpar2-moved-to-github.git]
/
src
/
session.c
diff --git
a/src/session.c
b/src/session.c
index
2dc9572
..
1dc3adf
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-168,6
+168,8
@@
void add_facet(struct session *s, const char *type, const char *value, int count
= termlist_create(s->nmem, TERMLIST_HIGH_SCORE);
s->num_termlists = i + 1;
}
= termlist_create(s->nmem, TERMLIST_HIGH_SCORE);
s->num_termlists = i + 1;
}
+ yaz_log(YLOG_DEBUG, "Session: facets for %s: %s (%d)", type, value, count);
+
termlist_insert(s->termlists[i].termlist, value, count);
}
termlist_insert(s->termlists[i].termlist, value, count);
}
@@
-722,7
+724,7
@@
struct session *new_session(NMEM nmem, struct conf_service *service,
}
session->normalize_cache = normalize_cache_create();
session->session_mutex = 0;
}
session->normalize_cache = normalize_cache_create();
session->session_mutex = 0;
- pazpar2_mutex_create(&session->session_mutex, name);
+ pazpar2_mutex_create_flag(&session->session_mutex, name, PTHREAD_MUTEX_RECURSIVE);
return session;
}
return session;
}