Allow predictable sessions PAZ-1030
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 3 Sep 2015 09:09:13 +0000 (11:09 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 3 Sep 2015 09:09:13 +0000 (11:09 +0200)
doc/pazpar2.xml
src/pazpar2.c

index a51539f..f9880c8 100644 (file)
     <listitem>
      <para>
       If this option is given, HTTP requests are logged to file named
-      <replaceable>recfile</replaceable>.
+      <replaceable>recfile</replaceable> and predictable sessions are enabled.
+      Using special argument, dash
+      (<literal>-</literal>), will make Pazpar2 use predictable sessions
+      only (no recording).
+      This is necessary when playing HTTP communication against pazpar2
+      with pazpar2_play.
      </para>
     </listitem>
    </varlistentry>
index d56daba..0dced81 100644 (file)
@@ -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':