We need predictable sessions when pazpar2 saves HTTP requests. If not
replay will refer to invalid sessions.
unsigned int res;
seq++;
- if (global_parameters.debug_mode)
+ if (global_parameters.predictable_sessions)
res = seq;
else
{
struct parameters {
int dump_records;
int debug_mode;
+ int predictable_sessions;
};
extern struct parameters global_parameters;
break;
case 'R':
record_fname = arg;
+ global_parameters.predictable_sessions = 1;
break;
case 't':
test_mode = 1;
show_version();
case 'X':
global_parameters.debug_mode++;
+ global_parameters.predictable_sessions = 1;
break;
default:
fprintf(stderr, "Usage: pazpar2\n"
struct parameters global_parameters =
{
0, // dump_records
- 0 // debug_mode
+ 0, // debug_mode
+ 0, // predictable sessions
};
struct client_list {