microsoft / FASTER

Fast persistent recoverable log and key-value store + cache, in C# and C++.
https://aka.ms/FASTER
MIT License
6.29k stars 563 forks source link

Does logicAddress change if I truncate the first part of FASTER.log? #894

Closed wangjia184 closed 6 months ago

wangjia184 commented 7 months ago

EnqueueAsync method returns logical address.

|A|B|C|D|E|F|

Suppose I have enqueued F in the tail and received the logic address returned from EnqueueAsync method. Now if I truncate A & B by calling TruncateUntilPageStart method.
Will the address of F be different from the value previouly returned from EnqueueAsync?

badrishc commented 6 months ago

No it will stay the same. The address is immutable.