Skip to content

Commit 683337b

Browse files
committed
[skip ci] Fix Javadoc
1 parent 25a154f commit 683337b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/main/java/com/scalar/db/transaction/consensuscommit/CrudHandler.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,10 @@ private Scanner scanFromStorage(Scan scan) throws CrudException {
493493
* | 0 | 1 | 200 | PREPARED | 1000 | COMMITTED |
494494
* </pre>
495495
*
496-
* If we scan records with the condition `column = 1000`, we will only retrieve the first record,
497-
* since the `column` value of the second record is `200`, which does not match `1000`. However,
498-
* the second record is a prepared record whose before image matches the condition, so it should
499-
* also be returned in the scan result.
496+
* If we scan records with the condition "column = 1000" without converting the condition
497+
* (conjunction), we only get the first record, not the second one, because the condition does not
498+
* match. However, the second record has not been committed yet, so we should still retrieve it,
499+
* considering the possibility that the record will be rolled back.
500500
*
501501
* <p>To handle such cases, we convert the conjunctions to include conditions on the before image.
502502
* For example, if the original condition is:

0 commit comments

Comments
 (0)