Преглед изворни кода

fix ParseInternalKey bug

main
VirgilZhu пре 8 месеци
родитељ
комит
b6143be065
3 измењених фајлова са 2 додато и 3 уклоњено
  1. +1
    -0
      db/db_impl.h
  2. +1
    -1
      db/dbformat.h
  3. +0
    -2
      db/fields.cpp

+ 1
- 0
db/db_impl.h Прегледај датотеку

@ -20,6 +20,7 @@
#include "leveldb/env.h"
#include "port/port.h"
#include "port/thread_annotations.h"
#include "port/port_stdcxx.h"
namespace leveldb {

+ 1
- 1
db/dbformat.h Прегледај датотеку

@ -54,7 +54,7 @@ class InternalKey;
// Value types encoded as the last component of internal keys.
// DO NOT CHANGE THESE ENUM VALUES: they are embedded in the on-disk
// data structures.
enum ValueType { kTypeDeletion = 0x0, kTypeValue = 0x1, kTypeSeparation = 0x2};
enum ValueType { kTypeDeletion = 0x0, kTypeValue = 0x2, kTypeSeparation = 0x1};
// kValueTypeForSeek defines the ValueType that should be passed when
// constructing a ParsedInternalKey object for seeking to a particular
// sequence number (since we sort sequence numbers in decreasing order

+ 0
- 2
db/fields.cpp Прегледај датотеку

@ -289,6 +289,4 @@ std::vector Fields::FindKeysByFields(leveldb::DB* db, const FieldAr
return find_keys;
}
} // namespace leveldb

Loading…
Откажи
Сачувај