From 392f6d49e5c13a4341ee483f7d272dee40edfc97 Mon Sep 17 00:00:00 2001 From: Yanqin Jin Date: Thu, 18 Apr 2019 09:17:41 -0700 Subject: [PATCH] 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 --- db/version_set.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/version_set.cc b/db/version_set.cc index 56cbffa85..1295baf7e 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -2857,7 +2857,7 @@ void VersionStorageInfo::GetOverlappingInputsRangeBinarySearch( // If there were no overlapping files, return immediately. if (start_index == end_index) { if (next_smallest) { - next_smallest = nullptr; + *next_smallest = nullptr; } return; }