28 lines
524 B
C++
28 lines
524 B
C++
// Copyright 2021, Roman Gershman. All rights reserved.
|
|
// See LICENSE for licensing terms.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "server/conn_context.h"
|
|
|
|
namespace dfly {
|
|
|
|
class EngineShardSet;
|
|
|
|
class DebugCmd {
|
|
public:
|
|
DebugCmd(EngineShardSet* ess, ConnectionContext* cntx);
|
|
|
|
void Run(CmdArgList args);
|
|
|
|
private:
|
|
void Populate(CmdArgList args);
|
|
void PopulateRangeFiber(uint64_t from, uint64_t len, std::string_view prefix, unsigned value_len);
|
|
|
|
EngineShardSet* ess_;
|
|
ConnectionContext* cntx_;
|
|
};
|
|
|
|
} // namespace dfly
|