Migrate names of properties from 'leveldb' prefix to 'rocksdb' prefix.

Summary: Migrate names of properties from 'leveldb' prefix to 'rocksdb' prefix.

Test Plan: make check

Reviewers: emayanke, haobo

Reviewed By: haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D13311
This commit is contained in:
Dhruba Borthakur
2013-10-04 22:32:05 -07:00
parent bf89edf78b
commit 4463b11cad
95 changed files with 175 additions and 490 deletions

View File

@@ -2,9 +2,7 @@
// 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.
#ifndef STORAGE_LEVELDB_TABLE_BLOCK_H_
#define STORAGE_LEVELDB_TABLE_BLOCK_H_
#pragma once
#include <stddef.h>
#include <stdint.h>
#include "rocksdb/iterator.h"
@@ -42,5 +40,3 @@ class Block {
};
} // namespace rocksdb
#endif // STORAGE_LEVELDB_TABLE_BLOCK_H_

View File

@@ -2,9 +2,7 @@
// 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.
#ifndef STORAGE_LEVELDB_TABLE_BLOCK_BUILDER_H_
#define STORAGE_LEVELDB_TABLE_BLOCK_BUILDER_H_
#pragma once
#include <vector>
#include <stdint.h>
@@ -56,5 +54,3 @@ class BlockBuilder {
};
} // namespace rocksdb
#endif // STORAGE_LEVELDB_TABLE_BLOCK_BUILDER_H_

View File

@@ -6,9 +6,7 @@
// filters (e.g., bloom filters) for all data blocks in the table combined
// into a single filter block.
#ifndef STORAGE_LEVELDB_TABLE_FILTER_BLOCK_H_
#define STORAGE_LEVELDB_TABLE_FILTER_BLOCK_H_
#pragma once
#include <stddef.h>
#include <stdint.h>
#include <string>
@@ -76,5 +74,3 @@ class FilterBlockReader {
};
}
#endif // STORAGE_LEVELDB_TABLE_FILTER_BLOCK_H_

View File

@@ -2,9 +2,7 @@
// 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.
#ifndef STORAGE_LEVELDB_TABLE_FORMAT_H_
#define STORAGE_LEVELDB_TABLE_FORMAT_H_
#pragma once
#include <string>
#include <stdint.h>
#include "rocksdb/slice.h"
@@ -105,5 +103,3 @@ inline BlockHandle::BlockHandle()
}
} // namespace rocksdb
#endif // STORAGE_LEVELDB_TABLE_FORMAT_H_

View File

@@ -1,7 +1,6 @@
// Copyright 2008-present Facebook. All Rights Reserved.
#ifndef STORAGE_LEVELDB_ITER_HEAP_H_
#define STORAGE_LEVELDB_ITER_HEAP_H_
#pragma once
#include <queue>
#include "rocksdb/comparator.h"
@@ -59,5 +58,3 @@ MinIterHeap NewMinIterHeap(const Comparator* comparator) {
}
} // namespace rocksdb
#endif // STORAGE_LEVELDB_ITER_HEAP_H_

View File

@@ -2,9 +2,7 @@
// 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.
#ifndef STORAGE_LEVELDB_TABLE_ITERATOR_WRAPPER_H_
#define STORAGE_LEVELDB_TABLE_ITERATOR_WRAPPER_H_
#pragma once
namespace rocksdb {
// A internal wrapper class with an interface similar to Iterator that
@@ -59,5 +57,3 @@ class IteratorWrapper {
};
} // namespace rocksdb
#endif // STORAGE_LEVELDB_TABLE_ITERATOR_WRAPPER_H_

View File

@@ -2,8 +2,7 @@
// 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.
#ifndef STORAGE_LEVELDB_TABLE_MERGER_H_
#define STORAGE_LEVELDB_TABLE_MERGER_H_
#pragma once
namespace rocksdb {
@@ -22,5 +21,3 @@ extern Iterator* NewMergingIterator(
const Comparator* comparator, Iterator** children, int n);
} // namespace rocksdb
#endif // STORAGE_LEVELDB_TABLE_MERGER_H_

View File

@@ -2,9 +2,7 @@
// 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.
#ifndef STORAGE_LEVELDB_INCLUDE_TABLE_H_
#define STORAGE_LEVELDB_INCLUDE_TABLE_H_
#pragma once
#include <memory>
#include <stdint.h>
#include "rocksdb/iterator.h"
@@ -103,5 +101,3 @@ class Table {
};
} // namespace rocksdb
#endif // STORAGE_LEVELDB_INCLUDE_TABLE_H_

View File

@@ -38,7 +38,7 @@ namespace {
class ReverseKeyComparator : public Comparator {
public:
virtual const char* Name() const {
return "leveldb.ReverseBytewiseComparator";
return "rocksdb.ReverseBytewiseComparator";
}
virtual int Compare(const Slice& a, const Slice& b) const {
@@ -798,7 +798,7 @@ TEST(Harness, RandomizedLongDB) {
for (int level = 0; level < db()->NumberLevels(); level++) {
std::string value;
char name[100];
snprintf(name, sizeof(name), "leveldb.num-files-at-level%d", level);
snprintf(name, sizeof(name), "rocksdb.num-files-at-level%d", level);
ASSERT_TRUE(db()->GetProperty(name, &value));
files += atoi(value.c_str());
}

View File

@@ -2,9 +2,7 @@
// 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.
#ifndef STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_
#define STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_
#pragma once
#include "rocksdb/iterator.h"
#include "rocksdb/env.h"
@@ -35,5 +33,3 @@ extern Iterator* NewTwoLevelIterator(
bool for_compaction = false);
} // namespace rocksdb
#endif // STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_