From 0d278456c9e94459aa62d50ba18b10bcc166a75f Mon Sep 17 00:00:00 2001 From: Andrew Kryczka Date: Sun, 18 Jun 2017 12:40:21 -0700 Subject: [PATCH] default implementation for InRange Summary: it's confusing to implementors of prefix extractor to implement an unused function Closes https://github.com/facebook/rocksdb/pull/2460 Differential Revision: D5267408 Pulled By: ajkr fbshipit-source-id: 2f1fe3131efc978f6098ae7a80e52bc7a0b13571 --- include/rocksdb/slice_transform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rocksdb/slice_transform.h b/include/rocksdb/slice_transform.h index ac9cb84a9..854e0bb17 100644 --- a/include/rocksdb/slice_transform.h +++ b/include/rocksdb/slice_transform.h @@ -58,7 +58,7 @@ class SliceTransform { virtual bool InDomain(const Slice& key) const = 0; // This is currently not used and remains here for backward compatibility. - virtual bool InRange(const Slice& dst) const = 0; + virtual bool InRange(const Slice& dst) const { return false; } // Transform(s)=Transform(`prefix`) for any s with `prefix` as a prefix. //