-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shell): mlog_dump support parsing check_and_set (#485)
- Loading branch information
Wu Tao
authored and
neverchanje
committed
Mar 31, 2020
1 parent
c5e98eb
commit 2e0afc7
Showing
5 changed files
with
51 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (c) 2017, Xiaomi, Inc. All rights reserved. | ||
// This source code is licensed under the Apache License Version 2.0, which | ||
// can be found in the LICENSE file in the root directory of this source tree. | ||
|
||
#pragma once | ||
|
||
namespace pegasus { | ||
|
||
inline std::string cas_check_type_to_string(dsn::apps::cas_check_type::type type) | ||
{ | ||
using namespace dsn::apps; | ||
auto it = _cas_check_type_VALUES_TO_NAMES.find(type); | ||
if (it == _cas_check_type_VALUES_TO_NAMES.end()) { | ||
return std::string("INVALID=") + std::to_string(int(type)); | ||
} | ||
return it->second; | ||
} | ||
|
||
inline bool cas_is_check_operand_needed(dsn::apps::cas_check_type::type type) | ||
{ | ||
return type >= dsn::apps::cas_check_type::CT_VALUE_MATCH_ANYWHERE; | ||
} | ||
|
||
} // namespace pegasus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters