On this topic - we tried, really really tried, not to write our own database. We've used BerkeleyDB in OpenLDAP since around 2000. We'd sunk a ton of energy into learning how to use it optimally. And it was ~2 years, from when we started looking for better approaches in 2009, until we finally bit the bullet and started writing LMDB in 2011. Frankly I think "never roll your own" is good advice in 98% of cases, but if after you've examined all your options, you don't find what you're looking for, then there's no other choice.
This was early 2016 from the centos 7 repos, so this must be relatively recent. It didn't even have to be writing to it. I just had to reboot and it was left in a dirty state.