hashicorp/consul — pull request #481 by zviadm (2014-11-19 02:39:47+00:00)
Title: avoid panicing and return errors when MDB fails

MDB transaction starting can fail due to resource overloading. instead of panicing just return errors.
I only fixed these two functions since I am running into issues with them, but could fix other ones too, that start transactions.