From: Adam Dickmeiss Date: Thu, 3 Sep 2015 09:09:13 +0000 (+0200) Subject: Allow predictable sessions PAZ-1030 X-Git-Tag: v1.12.3~3 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=c61904671e969a32a7f9d38a523f7abaa2b371fd;p=pazpar2-moved-to-github.git Allow predictable sessions PAZ-1030 --- diff --git a/doc/pazpar2.xml b/doc/pazpar2.xml index a51539f..f9880c8 100644 --- a/doc/pazpar2.xml +++ b/doc/pazpar2.xml @@ -143,7 +143,12 @@ If this option is given, HTTP requests are logged to file named - recfile. + recfile and predictable sessions are enabled. + Using special argument, dash + (-), will make Pazpar2 use predictable sessions + only (no recording). + This is necessary when playing HTTP communication against pazpar2 + with pazpar2_play. diff --git a/src/pazpar2.c b/src/pazpar2.c index d56daba..0dced81 100644 --- a/src/pazpar2.c +++ b/src/pazpar2.c @@ -152,7 +152,8 @@ static int sc_main( pidfile = arg; break; case 'R': - record_fname = arg; + if (strcmp(arg, "-")) + record_fname = arg; global_parameters.predictable_sessions = 1; break; case 't':