Skip to content

Commit

Permalink
Fix of errors in debug code.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii0lomakin committed Jan 9, 2024
1 parent 59874e2 commit 619c0ef
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions environment/src/main/kotlin/jetbrains/exodus/gc/GarbageCollector.kt
Original file line number Diff line number Diff line change
Expand Up @@ -374,27 +374,27 @@ class GarbageCollector(internal val environment: EnvironmentImpl) {
if (store == null) {
// TODO: remove openStoresCache when txn.openStoreByStructureId() is fast enough (XD-381)
store = txn.openStoreByStructureId(structureId)
openStoresCache[structureId] = store
}

if (loggable.address == 520806663897L) {
val tree = txn.getTree(store)
val iterator = tree.addressIterator()

if (loggable.address == 520806663897L) {
val tree = txn.getTree(store)
val iterator = tree.addressIterator()
println("Dear Roman please send me the following files:")
var lastFile = -1L
println("Dear Roman please send me the following files:")
var lastFile = -1L

while(iterator.hasNext()) {
val address = iterator.next()
val currentFileAddress = log.getFileAddress(address)
while (iterator.hasNext()) {
val address = iterator.next()
val currentFileAddress = log.getFileAddress(address)

if (lastFile != currentFileAddress) {
println(LogUtil.getLogFilename(currentFileAddress))
lastFile = currentFileAddress
}
if (lastFile != currentFileAddress) {
println(LogUtil.getLogFilename(currentFileAddress))
lastFile = currentFileAddress
}
}

println("Thank you, Roman !")

openStoresCache[structureId] = store
}
store.reclaim(txn, loggable, loggables)
}
Expand Down

0 comments on commit 619c0ef

Please sign in to comment.