Commit 540bde34 authored by Paal Kvamme's avatar Paal Kvamme
Browse files

User opt-in for the readonly kludge. Create read-only files by default.

parent 2a2f5676
......@@ -57,7 +57,7 @@ SeismicStoreIOContext::SeismicStoreIOContext()
legaltag(Environment::getStringEnv("OPENZGY_LEGALTAG"));
writeid(Environment::getStringEnv("OPENZGY_WRITEID"));
seismicmeta(Environment::getStringEnv("OPENZGY_SEISMICMETA"));
setRoAfterWrite(Environment::getNumericEnv("OPENZGY_RO_AFTER_WRITE", 0) > 0);
setRoAfterWrite(Environment::getNumericEnv("OPENZGY_RO_AFTER_WRITE", 1) > 0);
forceRoBeforeRead(Environment::getNumericEnv("OPENZGY_RO_BEFORE_READ", 0) > 0);
forceRwBeforeWrite(Environment::getNumericEnv("OPENZGY_RW_BEFORE_WRITE", 0) > 0);
}
......
......@@ -488,7 +488,7 @@ public:
/**
* Set the ZGY file to read-only when done writing it. Has no effect
* on files opened for read. Defaults to off. Most applications will
* on files opened for read. Defaults to on. Most applications will
* want to turn in this on because most applications do not expect
* to update ZGY files in place.
*
......
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