summaryrefslogtreecommitdiff
path: root/db/c.cc
diff options
context:
space:
mode:
authorgabor@google.com <gabor@google.com@62dab493-f737-651d-591e-8d6aee1b9529>2011-08-16 01:21:01 +0000
committergabor@google.com <gabor@google.com@62dab493-f737-651d-591e-8d6aee1b9529>2011-08-16 01:21:01 +0000
commitab323f7e1ec53749653967e7d6a2fa1c922334f2 (patch)
treebc6b5343550f7fad533dabd36452544d8bfb5a14 /db/c.cc
parenta05525d13beea3ae56d979fa5fffa9de3652db61 (diff)
downloadleveldb-ab323f7e1ec53749653967e7d6a2fa1c922334f2.tar.gz
Bugfixes for iterator and documentation.
- Fix bug in Iterator::Prev where it would return the wrong key. Fixes issues 29 and 30. - Added a tweak to testharness to allow running just some tests. - Fixing two minor documentation errors based on issues 28 and 25. - Cleanup; fix namespaces of export-to-C code. Also fix one "const char*" vs "char*" mismatch. git-svn-id: https://leveldb.googlecode.com/svn/trunk@48 62dab493-f737-651d-591e-8d6aee1b9529
Diffstat (limited to 'db/c.cc')
-rw-r--r--db/c.cc25
1 files changed, 21 insertions, 4 deletions
diff --git a/db/c.cc b/db/c.cc
index ee8a472..366dd2d 100644
--- a/db/c.cc
+++ b/db/c.cc
@@ -15,7 +15,26 @@
#include "leveldb/status.h"
#include "leveldb/write_batch.h"
-namespace leveldb {
+using leveldb::Cache;
+using leveldb::Comparator;
+using leveldb::CompressionType;
+using leveldb::DB;
+using leveldb::Env;
+using leveldb::FileLock;
+using leveldb::Iterator;
+using leveldb::Logger;
+using leveldb::NewLRUCache;
+using leveldb::Options;
+using leveldb::RandomAccessFile;
+using leveldb::Range;
+using leveldb::ReadOptions;
+using leveldb::SequentialFile;
+using leveldb::Slice;
+using leveldb::Snapshot;
+using leveldb::Status;
+using leveldb::WritableFile;
+using leveldb::WriteBatch;
+using leveldb::WriteOptions;
extern "C" {
@@ -172,7 +191,7 @@ void leveldb_release_snapshot(
delete snapshot;
}
-const char* leveldb_property_value(
+char* leveldb_property_value(
leveldb_t* db,
const char* propname) {
std::string tmp;
@@ -449,5 +468,3 @@ void leveldb_env_destroy(leveldb_env_t* env) {
}
} // end extern "C"
-
-}