If LightningEnvironment.BeginTransaction() is called before Open() a crash results.
var env = new LightningEnvironment("C:\\Somewhere");
env.MapSize = 12345;
env.BeginTransaction();
I know there are probably many places where the library or LMDB might behave this way, but since this one is "right at the start" and may discourage new users it seems like checking Environment.IsOpen in BeginTransaction() and throwing appropriately would be worthwhile.
If
LightningEnvironment.BeginTransaction()
is called beforeOpen()
a crash results.I know there are probably many places where the library or LMDB might behave this way, but since this one is "right at the start" and may discourage new users it seems like checking
Environment.IsOpen
inBeginTransaction()
and throwing appropriately would be worthwhile.