From c6783d62f1e55bcff57b70ef1c2ab55da95d96d4 Mon Sep 17 00:00:00 2001 From: ArcueidType <981354012@qq.com> Date: Tue, 10 Dec 2024 10:50:39 +0800 Subject: [PATCH] update original get --- db/db_impl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/db_impl.cc b/db/db_impl.cc index 565fbba..6db14f3 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -1153,6 +1153,8 @@ Status DBImpl::Get(const ReadOptions& options, const Slice& key, s = current->Get(options, lkey, value, &stats); have_stat_update = true; } + auto fields = Fields(Slice(*value)); + *value = fields["1"]; mutex_.Lock(); }