Skip to content

Commit

Permalink
Merge branch 'master' into node_0.11_compat
Browse files Browse the repository at this point in the history
Conflicts:
	src/database.cc
  • Loading branch information
kesla committed Aug 10, 2013
2 parents 4112961 + 2569c39 commit 0a20241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void Database::ReleaseIterator (uint32_t id) {
// if there is a pending CloseWorker it means that we're waiting for
// iterators to end before we can close them
iterators.erase(id);
if (iterators.size() == 0 && pendingCloseWorker != NULL) {
if (iterators.empty() && pendingCloseWorker != NULL) {
NanAsyncQueueWorker((AsyncWorker*)pendingCloseWorker);
pendingCloseWorker = NULL;
}
Expand Down Expand Up @@ -247,7 +247,7 @@ NAN_METHOD(Database::Close) {
, new NanCallback(callback)
);

if (database->iterators.size() > 0) {
if (!database->iterators.empty()) {
// yikes, we still have iterators open! naughty naughty.
// we have to queue up a CloseWorker and manually close each of them.
// the CloseWorker will be invoked once they are all cleaned up
Expand Down

0 comments on commit 0a20241

Please sign in to comment.