forked from pinpoint-apm/pinpoint
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pinpoint-apm#11388] Optimize Async call chain of maxColumnValue
- Loading branch information
Showing
2 changed files
with
43 additions
and
36 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
commons-hbase/src/main/java/com/navercorp/pinpoint/common/hbase/CasResult.java
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,17 @@ | ||
package com.navercorp.pinpoint.common.hbase; | ||
|
||
import org.apache.hadoop.hbase.client.CheckAndMutateResult; | ||
|
||
public enum CasResult { | ||
INITIAL_UPDATE, | ||
CAS_NEW, | ||
CAS_OLD; | ||
|
||
public static CasResult casResult(CheckAndMutateResult casResult) { | ||
if (casResult.isSuccess()) { | ||
return CAS_NEW; | ||
} else { | ||
return CAS_OLD; | ||
} | ||
} | ||
} |
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