Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Create shard files if missing #1591
If, when a database is created, it was not possible to create any of
This commit changes fabric_util:get_db/2 to create the shard file if
It's tricky. You need to have max_dbs_open's worth of files open on all nodes when creating the database. This ensures the _dbs doc is created (as this db is opened at startup and stays open) but none of the shards.
The easiest test is as follows;
retry with the patch and step 5 is successful (and the shard files appear on disk).
Related Issues or Pull Requests