From: Yanqin Jin Date: Thu, 18 Apr 2019 16:17:41 +0000 (-0700) Subject: Fix a bug in GetOverlappingInputsRangeBinarySearch (#5211) X-Git-Tag: v6.1.1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d81aedf2bbcba724a39985c37cce6beaeb045b8e;p=rocksdb.git Fix a bug in GetOverlappingInputsRangeBinarySearch (#5211) Summary: As title. Pull Request resolved: https://github.com/facebook/rocksdb/pull/5211 Differential Revision: D14992018 Pulled By: riversand963 fbshipit-source-id: b5720ea4742029e2fb47ff6d9f8d9de006db4ed4 --- diff --git a/db/version_set.cc b/db/version_set.cc index a39d2b9d..6c7b77a9 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -2235,7 +2235,7 @@ void VersionStorageInfo::GetOverlappingInputsRangeBinarySearch( // If there were no overlapping files, return immediately. if (!foundOverlap) { if (next_smallest) { - next_smallest = nullptr; + *next_smallest = nullptr; } return; }