Details
-
Bug
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
We must to clone the cell since the cell is backed by the reusable byte array. Also, we assume all cells passed to AbstractMemStore is of ExtendedCell. Not only is the type check unnecessary, but it also confuses the readers.
AbstractMemStore.java
private static Cell deepCopyIfNeeded(Cell cell) { if (cell instanceof ExtendedCell) { return ((ExtendedCell) cell).deepClone(); } return cell; }