Fixed constructor initialization warnings.

Fixed nameSpace variable assignment used in keva_filter.
This commit is contained in:
Jianping Wu 2019-02-11 22:30:32 -08:00
parent 3ea0145db8
commit bf62b97a6a
2 changed files with 2 additions and 4 deletions

View File

@ -91,7 +91,7 @@ public:
}; };
CCacheKeyIterator::CCacheKeyIterator(const CKevaCache& c, CKevaIterator* b) CCacheKeyIterator::CCacheKeyIterator(const CKevaCache& c, CKevaIterator* b)
: cache(c), base(b), CKevaIterator(b->getNamespace()) : CKevaIterator(b->getNamespace()), cache(c), base(b)
{ {
/* Add a seek-to-start to ensure that everything is consistent. This call /* Add a seek-to-start to ensure that everything is consistent. This call
may be superfluous if we seek to another position afterwards anyway, may be superfluous if we seek to another position afterwards anyway,

View File

@ -108,7 +108,7 @@ std::string getKevaInfoHelp (const std::string& indent, const std::string& trail
/** /**
* Utility routine to construct a "name info" object to return. This is used * Utility routine to construct a "name info" object to return. This is used
* for name_show and also name_list. * for keva_filter.
* @param name The name. * @param name The name.
* @param value The name's value. * @param value The name's value.
* @param outp The last update's outpoint. * @param outp The last update's outpoint.
@ -172,7 +172,6 @@ UniValue keva_filter(const JSONRPCRequest& request)
" ...\n" " ...\n"
"]\n" "]\n"
"\nExamples:\n" "\nExamples:\n"
+ HelpExampleCli ("keva_filter", "\"\" 5")
+ HelpExampleCli ("keva_filter", "\"^id/\"") + HelpExampleCli ("keva_filter", "\"^id/\"")
+ HelpExampleCli ("keva_filter", "\"^id/\" 36000 0 0 \"stat\"") + HelpExampleCli ("keva_filter", "\"^id/\" 36000 0 0 \"stat\"")
+ HelpExampleRpc ("keva_filter", "\"^d/\"") + HelpExampleRpc ("keva_filter", "\"^d/\"")
@ -202,7 +201,6 @@ UniValue keva_filter(const JSONRPCRequest& request)
if (request.params.size() >= 1) { if (request.params.size() >= 1) {
const std::string namespaceStr = request.params[0].get_str(); const std::string namespaceStr = request.params[0].get_str();
valtype nameSpace;
if (!DecodeKevaNamespace(namespaceStr, Params(), nameSpace)) { if (!DecodeKevaNamespace(namespaceStr, Params(), nameSpace)) {
throw JSONRPCError (RPC_INVALID_PARAMETER, "invalid namespace id"); throw JSONRPCError (RPC_INVALID_PARAMETER, "invalid namespace id");
} }