2021-10-20 01:51:34 +02:00
|
|
|
package it.cavallium.dbengine.database.disk;
|
|
|
|
|
2022-03-16 13:47:56 +01:00
|
|
|
import io.netty5.buffer.api.Buffer;
|
2022-07-15 02:44:50 +02:00
|
|
|
import io.netty5.util.Send;
|
2021-10-20 01:51:34 +02:00
|
|
|
|
2022-05-20 18:31:05 +02:00
|
|
|
public record UpdateAtomicResultCurrent(Buffer current) implements UpdateAtomicResult {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void close() {
|
|
|
|
if (current != null && current.isAccessible()) {
|
|
|
|
current.close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|