From c61904671e969a32a7f9d38a523f7abaa2b371fd Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 3 Sep 2015 11:09:13 +0200 Subject: [PATCH] Allow predictable sessions PAZ-1030 --- doc/pazpar2.xml | 7 ++++++- src/pazpar2.c | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) 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': -- 1.7.10.4