From eb10979dc08db126fcdc28b8b9b1f229b49969fa Mon Sep 17 00:00:00 2001 From: sdong Date: Mon, 3 Nov 2014 18:09:01 -0800 Subject: [PATCH] SERVER-15978 RocksCursor doesn't need to locate to the beginning when created --- src/mongo/db/storage/rocks/rocks_sorted_data_impl.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/mongo/db/storage/rocks/rocks_sorted_data_impl.cpp b/src/mongo/db/storage/rocks/rocks_sorted_data_impl.cpp index 68db1e6..69c78a0 100644 --- a/src/mongo/db/storage/rocks/rocks_sorted_data_impl.cpp +++ b/src/mongo/db/storage/rocks/rocks_sorted_data_impl.cpp @@ -116,12 +116,6 @@ namespace mongo { _isCached(false), _comparator(o) { _resetIterator(txn); - - // TODO: maybe don't seek until we know we need to? - if (_forward) - _iterator->SeekToFirst(); - else - _iterator->SeekToLast(); _checkStatus(); } -- 1.8.1