Change operation_failed to dd_not_found

This commit is contained in:
Chaoguang Lin 2020-11-18 00:18:42 -08:00
parent 748d0944ba
commit a4174d3108
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ ACTOR Future<Standalone<RangeResultRef>> ddMetricsGetRangeActor(ReadYourWritesTr
return result;
} catch (Error& e) {
state Error err(e);
if (e.code() == error_code_operation_failed) {
if (e.code() == error_code_dd_not_found) {
TraceEvent(SevWarnAlways, "DataDistributorNotPresent")
.detail("Operation", "DDMetricsReqestThroughSpecialKeys");
wait(delayJittered(FLOW_KNOBS->PREVENT_FAST_SPIN_DELAY));