Commit c3aac583 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Make VSL_Open not open the shmlog if run with -r

parent f535d862
......@@ -375,9 +375,11 @@ VSL_Open(struct VSM_data *vd, int diag)
vsl = vd->vsl;
CHECK_OBJ_NOTNULL(vsl, VSL_MAGIC);
i = VSM_Open(vd, diag);
if (i)
return (i);
if (vsl->r_fd == -1) {
i = VSM_Open(vd, diag);
if (i)
return (i);
}
if (!vsl->d_opt && vsl->r_fd == -1) {
while (*vsl->log_ptr != VSL_ENDMARKER)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment