diff options
author | gabor@google.com <gabor@google.com@62dab493-f737-651d-591e-8d6aee1b9529> | 2011-08-16 01:21:01 +0000 |
---|---|---|
committer | gabor@google.com <gabor@google.com@62dab493-f737-651d-591e-8d6aee1b9529> | 2011-08-16 01:21:01 +0000 |
commit | ab323f7e1ec53749653967e7d6a2fa1c922334f2 (patch) | |
tree | bc6b5343550f7fad533dabd36452544d8bfb5a14 /doc | |
parent | a05525d13beea3ae56d979fa5fffa9de3652db61 (diff) | |
download | leveldb-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 'doc')
-rw-r--r-- | doc/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
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: <p> <pre> #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 <code>WriteBatch</code> class to atomically apply a set of updates: <p> <pre> - #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 <code>leveldb::Comparator</code> 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. <h1>Performance</h1> <p> Performance can be tuned by changing the default values of the -types defined in <code>leveldb/include/options.h</code>. +types defined in <code>include/leveldb/options.h</code>. <p> <h2>Block size</h2> @@ -371,7 +371,7 @@ filesystem and each file stores a sequence of compressed blocks. If uncompressed block contents. <p> <pre> - #include "leveldb/include/cache.h" + #include "leveldb/cache.h" leveldb::Options options; options.cache = leveldb::NewLRUCache(100 * 1048576); // 100MB cache |