Skip to content

Commit

Permalink
release iterator snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Apr 3, 2016
1 parent 1007baf commit 160e0b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iterator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ void Iterator::IteratorEnd () {
//TODO: could return it->status()
delete dbIterator;
dbIterator = NULL;
database->ReleaseSnapshot(options->snapshot);
}

void Iterator::Release () {
Expand Down

0 comments on commit 160e0b2

Please sign in to comment.