1 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
2 // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. See the AUTHORS file for names of contributors.
5 
6 #include "rocksdb/wal_filter.h"
7 
8 #include <memory>
9 
10 #include "rocksdb/convenience.h"
11 #include "rocksdb/options.h"
12 #include "rocksdb/utilities/customizable_util.h"
13 
14 namespace ROCKSDB_NAMESPACE {
CreateFromString(const ConfigOptions & config_options,const std::string & value,WalFilter ** filter)15 Status WalFilter::CreateFromString(const ConfigOptions& config_options,
16                                    const std::string& value,
17                                    WalFilter** filter) {
18   Status s =
19       LoadStaticObject<WalFilter>(config_options, value, nullptr, filter);
20   return s;
21 }
22 
23 }  // namespace ROCKSDB_NAMESPACE
24