Details
-
Improvement
-
Resolution: Fixed
-
Major
-
4.6.0
Description
VBucket::addTempStoredValue can only return two possible results - NoMem or BgFetch; however it's return type is an enum with 6 values:
enum class AddStatus : uint16_t { |
Success, //!< Add was successful. |
NoMem, //!< No memory for operation |
Exists, //!< Did not update -- item exists with this key |
UnDel, //!< Undeletes an existing dirty item |
AddTmpAndBgFetch, //!< Create a tmp item and schedule a bg metadata fetch |
BgFetch //!< Schedule a bg metadata fetch to process ADD op |
};
|
We should change it to statically return just a binary type.