Files
scylladb/redis/options.cc
Avi Kivity 5ed1a8217c redis: switch from replica/database to data_dictionary
redis uses replica/database only for data dictionary purposes;
switch it to the much lighter weight data_dictionary module.

Closes #9926
2022-01-18 13:26:29 +02:00

27 lines
548 B
C++

/*
* Copyright (C) 2019 pengjian.uestc @ gmail.com
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#include "redis/options.hh"
#include "types.hh"
#include "service/storage_proxy.hh"
#include "schema.hh"
#include <seastar/core/print.hh>
#include "redis/keyspace_utils.hh"
using namespace seastar;
namespace redis {
schema_ptr get_schema(service::storage_proxy& proxy, const sstring& ks_name, const sstring& cf_name) {
auto db = proxy.data_dictionary();
auto schema = db.find_schema(ks_name, cf_name);
return schema;
}
}