-
Notifications
You must be signed in to change notification settings - Fork 990
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. If the first request sent to the connection is large (2kb or more) Dragonfly was closing the connection. 2. Changed server side error reporting according to memcache protocol: https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L172 3. Fixed the wrong casting in DispatchCommand. 4. Remove practically unused code that translated opstatus to strings. Signed-off-by: Roman Gershman <[email protected]>
- Loading branch information
Showing
8 changed files
with
46 additions
and
71 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
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 |
---|---|---|
@@ -1,48 +1,3 @@ | ||
#include "facade/op_status.h" | ||
|
||
namespace facade { | ||
|
||
const char* DebugString(OpStatus op) { | ||
switch (op) { | ||
case OpStatus::OK: | ||
return "OK"; | ||
case OpStatus::KEY_EXISTS: | ||
return "KEY EXISTS"; | ||
case OpStatus::KEY_NOTFOUND: | ||
return "KEY NOTFOUND"; | ||
case OpStatus::SKIPPED: | ||
return "SKIPPED"; | ||
case OpStatus::INVALID_VALUE: | ||
return "INVALID VALUE"; | ||
case OpStatus::OUT_OF_RANGE: | ||
return "OUT OF RANGE"; | ||
case OpStatus::WRONG_TYPE: | ||
return "WRONG TYPE"; | ||
case OpStatus::TIMED_OUT: | ||
return "TIMED OUT"; | ||
case OpStatus::OUT_OF_MEMORY: | ||
return "OUT OF MEMORY"; | ||
case OpStatus::INVALID_FLOAT: | ||
return "INVALID FLOAT"; | ||
case OpStatus::INVALID_INT: | ||
return "INVALID INT"; | ||
case OpStatus::SYNTAX_ERR: | ||
return "INVALID SYNTAX"; | ||
case OpStatus::BUSY_GROUP: | ||
return "BUSY GROUP"; | ||
case OpStatus::STREAM_ID_SMALL: | ||
return "STREAM ID TO SMALL"; | ||
case OpStatus::ENTRIES_ADDED_SMALL: | ||
return "ENTRIES ADDED IS TO SMALL"; | ||
case OpStatus::INVALID_NUMERIC_RESULT: | ||
return "INVALID NUMERIC RESULT"; | ||
case OpStatus::CANCELLED: | ||
return "CANCELLED"; | ||
} | ||
return "Unknown Error Code"; // we should not be here, but this is how enums works in c++ | ||
} | ||
const char* OpResultBase::DebugFormat() const { | ||
return DebugString(st_); | ||
} | ||
|
||
} // namespace facade | ||
namespace facade {} // namespace facade |
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
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
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