Ref #3250 Fixes #3251: split repository in ro/rw