Revision 6d730b4ae71baa2d0a38617f5333e30af32ef15c authored by Islam AbdelRahman on 15 October 2015, 17:51:00 UTC, committed by Islam AbdelRahman on 15 October 2015, 17:51:00 UTC
Summary:
This patch will block all tests (not including db_test) that don't compile / fail under ROCKSDB_LITE

Test Plan:
OPT=-DROCKSDB_LITE make db_compaction_filter_test -j64 &&
OPT=-DROCKSDB_LITE make db_compaction_test -j64 &&
OPT=-DROCKSDB_LITE make db_dynamic_level_test -j64 &&
OPT=-DROCKSDB_LITE make db_log_iter_test -j64 &&
OPT=-DROCKSDB_LITE make db_tailing_iter_test -j64 &&
OPT=-DROCKSDB_LITE make db_universal_compaction_test -j64 &&
OPT=-DROCKSDB_LITE make ldb_cmd_test -j64

make clean

make db_compaction_filter_test -j64 &&
make db_compaction_test -j64 &&
make db_dynamic_level_test -j64 &&
make db_log_iter_test -j64 &&
make db_tailing_iter_test -j64 &&
make db_universal_compaction_test -j64 &&
make ldb_cmd_test -j64

Reviewers: yhchiang, igor, sdong

Reviewed By: sdong

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D48723
1 parent 5eee1ef
Raw File
scoped_arena_iterator.h
// Copyright (c) 2013, Facebook, Inc.  All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#pragma once

#include "table/internal_iterator.h"

namespace rocksdb {
class ScopedArenaIterator {
 public:
  explicit ScopedArenaIterator(InternalIterator* iter = nullptr)
      : iter_(iter) {}

  InternalIterator* operator->() { return iter_; }

  void set(InternalIterator* iter) { iter_ = iter; }

  InternalIterator* get() { return iter_; }

  ~ScopedArenaIterator() { iter_->~InternalIterator(); }

 private:
  InternalIterator* iter_;
};
}  // namespace rocksdb
back to top