Browse Source

add YCSB-benchmark

pull/3/head
alexfisher 9 months ago
parent
commit
5ceba7652d
3 changed files with 5 additions and 1 deletions
  1. +3
    -0
      .gitmodules
  2. +1
    -0
      YCSB-cpp
  3. +1
    -1
      db/version_set.cc

+ 3
- 0
.gitmodules View File

@ -4,3 +4,6 @@
[submodule "third_party/benchmark"] [submodule "third_party/benchmark"]
path = third_party/benchmark path = third_party/benchmark
url = https://github.com/google/benchmark url = https://github.com/google/benchmark
[submodule "YCSB-cpp"]
path = YCSB-cpp
url = https://github.com/ls4154/YCSB-cpp.git

+ 1
- 0
YCSB-cpp

@ -0,0 +1 @@
Subproject commit b8e5cc1446a3df02f09d045b045434bdebf27405

+ 1
- 1
db/version_set.cc View File

@ -984,7 +984,7 @@ Status VersionSet::Recover(bool* save_manifest) {
for (const auto& filename:filenames) { for (const auto& filename:filenames) {
if (IsValueLogFile(filename)){ if (IsValueLogFile(filename)){
uint64_t valuelog_number = GetValueLogID(filename); uint64_t valuelog_number = GetValueLogID(filename);
std::cout<<valuelog_number<<std::endl;
//std::cout<<valuelog_number<<std::endl;
MarkFileNumberUsed(valuelog_number); MarkFileNumberUsed(valuelog_number);
} }
} }

Loading…
Cancel
Save