Skip to content

Commit

Permalink
Add back NewEmptyIterator (#5203)
Browse files Browse the repository at this point in the history
Summary:
#4905 removed the implementation of `NewEmptyIterator` but kept its
declaration in the public header. This breaks some systems that depend on
RocksDB if the systems use `NewEmptyIterator`. Therefore, add it back to fix. cc maysamyabandeh please remind me if I miss anything here. Thanks
Pull Request resolved: #5203

Differential Revision: D14968382

Pulled By: riversand963

fbshipit-source-id: 5fb86e99c8cfaf9f7a9473cdb1355d7558ff6e01
  • Loading branch information
riversand963 authored and facebook-github-bot committed Apr 17, 2019
1 parent beb44ec commit d9280ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions table/iterator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ class EmptyInternalIterator : public InternalIteratorBase<TValue> {
};
} // namespace

Iterator* NewEmptyIterator() { return new EmptyIterator(Status::OK()); }

Iterator* NewErrorIterator(const Status& status) {
return new EmptyIterator(status);
}
Expand Down

0 comments on commit d9280ff

Please sign in to comment.