A RAII wrapper class which s-latches the global lock_sys shard, and mutexes protecting specified shards for the duration of its scope.
More...
A RAII wrapper class which s-latches the global lock_sys shard, and mutexes protecting specified shards for the duration of its scope.
It makes sure to take the latches in correct order and handles the case where both pages are in the same shard correctly. The order of initialization is important: we have to take shared global latch BEFORE we attempt to use hash function to compute correct shard and latch it.