From 4aceaa739ff4237599322f3ec4df7603d1622ba1 Mon Sep 17 00:00:00 2001 From: gyfffffff <0707charon@gmail.com> Date: Sat, 2 Nov 2024 13:34:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/version_set.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/version_set.cc b/db/version_set.cc index 90276d5..c9dd8a0 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -107,7 +107,7 @@ int FindFile(const InternalKeyComparator& icmp, } while(right < files.size()) { - printf("file ind %d num %d largest deadtime %d parsed deadtime %d\n", + printf("file ind %d num %lu largest deadtime %lu parsed deadtime %lu\n", right,files[right]->number,files[right]->largest_deadtime,parsed.deadTime); if(files[right]->largest_deadtime >= parsed.deadTime) { break; @@ -303,7 +303,7 @@ void Version::ForEachOverlapping(Slice user_key, Slice internal_key, void* arg, const Comparator* ucmp = vset_->icmp_.user_comparator(); ParsedInternalKey parsed; ParseInternalKey(internal_key,&parsed); - printf("parsed lookup deadtime : %d\n",parsed.deadTime); + printf("parsed lookup deadtime : %lu\n",parsed.deadTime); // Search level-0 in order from newest to oldest. std::vector tmp; tmp.reserve(files_[0].size()); @@ -380,7 +380,7 @@ Status Version::Get(const ReadOptions& options, const LookupKey& k, state->s = state->vset->table_cache_->Get(*state->options, f->number, f->file_size, state->ikey, &state->saver, SaveValue); - printf("file level %d num %d\n",level,f->number); + printf("file level %d num %lu\n", level, f->number); std::cout<<"state->s ->saver.state: "<s.ok()<<" "<saver.state<s.ok()) { state->found = true;