From ab323f7e1ec53749653967e7d6a2fa1c922334f2 Mon Sep 17 00:00:00 2001 From: "gabor@google.com" Date: Tue, 16 Aug 2011 01:21:01 +0000 Subject: 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 --- doc/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/index.html b/doc/index.html index 58442e8..8d03c45 100644 --- a/doc/index.html +++ b/doc/index.html @@ -23,7 +23,7 @@ creating it if necessary:

   #include <assert>
-  #include "leveldb/include/db.h"
+  #include "leveldb/db.h"
 
   leveldb::DB* db;
   leveldb::Options options;
@@ -78,7 +78,7 @@ Such problems can be avoided by using the WriteBatch class to
 atomically apply a set of updates:
 

-  #include "leveldb/include/write_batch.h"
+  #include "leveldb/write_batch.h"
   ...
   std::string value;
   leveldb::Status s = db->Get(leveldb::ReadOptions(), key1, &value);
@@ -296,7 +296,7 @@ subclass of leveldb::Comparator that expresses these rules:
     }
 
     // Ignore the following methods for now:
-    const char* Name() { return "TwoPartComparator"; }
+    const char* Name() const { return "TwoPartComparator"; }
     void FindShortestSeparator(std::string*, const leveldb::Slice&) const { }
     void FindShortSuccessor(std::string*) const { }
   };
@@ -333,7 +333,7 @@ version numbers found in the keys to decide how to interpret them.
 

Performance

Performance can be tuned by changing the default values of the -types defined in leveldb/include/options.h. +types defined in include/leveldb/options.h.

Block size

@@ -371,7 +371,7 @@ filesystem and each file stores a sequence of compressed blocks. If uncompressed block contents.

-  #include "leveldb/include/cache.h"
+  #include "leveldb/cache.h"
 
   leveldb::Options options;
   options.cache = leveldb::NewLRUCache(100 * 1048576);  // 100MB cache
-- 
cgit v1.2.1