HaloDB icon indicating copy to clipboard operation
HaloDB copied to clipboard

Unused Field

Open QiAnXinCodeSafe opened this issue 5 years ago • 1 comments

https://github.com/yahoo/HaloDB/blob/741b4f7e39441f34bd04935bd353745c2525adec/src/main/java/com/oath/halodb/Segment.java#L22

This field is never used.

QiAnXinCodeSafe avatar Nov 19 '20 10:11 QiAnXinCodeSafe

The lock field is used for re-entrance lock. lock value is the the thread_id that currently acquire the current Segment instance, which is updated by the lockFieldUpdater

https://github.com/yahoo/HaloDB/blob/741b4f7e39441f34bd04935bd353745c2525adec/src/main/java/com/oath/halodb/Segment.java#L23-L24

https://github.com/yahoo/HaloDB/blob/741b4f7e39441f34bd04935bd353745c2525adec/src/main/java/com/oath/halodb/Segment.java#L39-L65

tuannh982 avatar Jul 09 '21 02:07 tuannh982