Fix OpenLedger::empty:

* Fix logic of OpenLedger::empty
* Add regression test
* Remove some dead code
This commit is contained in:
JoelKatz
2015-09-24 21:37:43 -07:00
committed by Vinnie Falco
parent 92b2ca70b7
commit d6875975ab
3 changed files with 11 additions and 7 deletions

View File

@@ -41,7 +41,7 @@ OpenLedger::empty() const
{
std::lock_guard<
std::mutex> lock(modify_mutex_);
return current_->txCount() != 0;
return current_->txCount() == 0;
}
std::shared_ptr<ReadView const>