A TTL index is applied to a mongodb collection. It is instructed to delete documents after expiration if A = true
.
A document of this collection is currently locked inside a long running transaction. The document exceeds the TTL while in transaction. The value for A
before the start of the transaction was true
. When the transaction started, the value of A was modified to be false.
Hence, after the transaction is completed and the locked is removed on this document, then A = false
.
Will this document be removed by the TTL after the transaction completes?