Detect node store batch write failures (RIPD-270):

* Raise open file limit from the soft max to the hard max.
This commit is contained in:
Nik Bougalis
2014-08-05 12:50:12 -07:00
parent 1c005a0292
commit d91c1f96cc
4 changed files with 16 additions and 3 deletions

View File

@@ -172,7 +172,10 @@ public:
hyperleveldb::WriteOptions const options;
m_db->Write (options, &wb).ok ();
auto ret = m_db->Write (options, &wb);
if (!ret.ok ())
throw std::runtime_error ("storeBatch failed: " + ret.ToString());
}
void