summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2014-09-02 12:04:30 -0400
committerSusan LoVerso <sue@wiredtiger.com>2014-09-02 12:04:30 -0400
commite45d3e32b3e5301ad1a0d109f931f2119b9a4719 (patch)
tree2f6212caadb1b6b0d762b8b5334eccbfc399eba2 /api
parent3c4a34059715fd85b9f6e6779f8010ccaa01cb4f (diff)
downloadmongo-e45d3e32b3e5301ad1a0d109f931f2119b9a4719.tar.gz
Remove loop to walk replay iterator from LiveBackup. #1106
Diffstat (limited to 'api')
-rw-r--r--api/leveldb/hyper_wt.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/api/leveldb/hyper_wt.cc b/api/leveldb/hyper_wt.cc
index b147ff6fe75..95c82289e18 100644
--- a/api/leveldb/hyper_wt.cc
+++ b/api/leveldb/hyper_wt.cc
@@ -338,25 +338,6 @@ DbImpl::LiveBackup(const Slice& name)
if ((t_ret = cursor->close(cursor)) != 0 && ret == 0)
ret = t_ret;
- // We only copied file contents that are on-disk.
- // At this point we want to use a ReplayIterator to
- // apply any in-memory operations.
- DB* db;
- leveldb::Options options;
- ReplayIteratorImpl *iter = new ReplayIteratorImpl(context);
- Status s = Open(options, backup, &db);
- assert(s.ok());
-
- while (iter->Valid()) {
- if (iter->HasValue())
- s = db->Put(leveldb::WriteOptions(),
- iter->key(), iter->value());
- else
- s = db->Delete(leveldb::WriteOptions(), iter->key());
- iter->Next();
- }
- delete iter;
- delete db;
return (WiredTigerErrorToStatus(ret));
}