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
Add pz:memcached option
[pazpar2-moved-to-github.git]
/
src
/
connection.c
diff --git
a/src/connection.c
b/src/connection.c
index
d2c9b70
..
2524434
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-1,5
+1,5
@@
/* This file is part of Pazpar2.
/* This file is part of Pazpar2.
- Copyright (C) 2006-2013 Index Data
+ Copyright (C) Index Data
Pazpar2 is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Pazpar2 is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
@@
-216,7
+216,7
@@
static void non_block_events(struct connection *co)
ev = ZOOM_connection_last_event(link);
#if 1
ev = ZOOM_connection_last_event(link);
#if 1
- yaz_log(YLOG_DEBUG, "%p Connection ZOOM_EVENT_%s", co, ZOOM_get_event_str(ev));
+ yaz_log(YLOG_LOG, "%p Connection ZOOM_EVENT_%s", co, ZOOM_get_event_str(ev));
#endif
switch (ev)
{
#endif
switch (ev)
{
@@
-390,7
+390,6
@@
void connect_resolver_host(struct host *host, iochan_man_t iochan_man)
}
else
{
}
else
{
- yaz_log(YLOG_LOG, "connect_resolver_host: state=%d", con->state);
con = con->next;
}
}
con = con->next;
}
}
@@
-415,6
+414,7
@@
static int connection_connect(struct connection *con, iochan_man_t iochan_man)
struct session_database *sdb = client_get_database(con->client);
const char *apdulog = session_setting_oneval(sdb, PZ_APDULOG);
struct session_database *sdb = client_get_database(con->client);
const char *apdulog = session_setting_oneval(sdb, PZ_APDULOG);
+ const char *memcached = session_setting_oneval(sdb, PZ_MEMCACHED);
assert(con);
assert(con);
@@
-424,6
+424,8
@@
static int connection_connect(struct connection *con, iochan_man_t iochan_man)
if ((charset = session_setting_oneval(sdb, PZ_NEGOTIATION_CHARSET)))
ZOOM_options_set(zoptions, "charset", charset);
if ((charset = session_setting_oneval(sdb, PZ_NEGOTIATION_CHARSET)))
ZOOM_options_set(zoptions, "charset", charset);
+ if (memcached && *memcached)
+ ZOOM_options_set(zoptions, "memcached", memcached);
assert(host->ipport);
if (host->proxy)
assert(host->ipport);
if (host->proxy)
@@
-452,7
+454,7
@@
static int connection_connect(struct connection *con, iochan_man_t iochan_man)
{
/* allow splitting user and reset with a blank always */
const char *cp1 = strchr(auth, ' ');
{
/* allow splitting user and reset with a blank always */
const char *cp1 = strchr(auth, ' ');
- if (!cp1 && sru && *sru_version)
+ if (!cp1 && sru && *sru)
cp1 = strchr(auth, '/');
if (!cp1)
{
cp1 = strchr(auth, '/');
if (!cp1)
{