Made shutdown session save a throwaway transaction

This commit is contained in:
Risto Lahtela 2021-03-24 14:03:57 +02:00
parent 2c8bbc80d8
commit d7ca428d41

View File

@ -19,7 +19,7 @@ package com.djrapitops.plan.storage.database.transactions.events;
import com.djrapitops.plan.gathering.cache.SessionCache; import com.djrapitops.plan.gathering.cache.SessionCache;
import com.djrapitops.plan.gathering.domain.FinishedSession; import com.djrapitops.plan.gathering.domain.FinishedSession;
import com.djrapitops.plan.storage.database.queries.LargeStoreQueries; import com.djrapitops.plan.storage.database.queries.LargeStoreQueries;
import com.djrapitops.plan.storage.database.transactions.Transaction; import com.djrapitops.plan.storage.database.transactions.ThrowawayTransaction;
import java.util.Collection; import java.util.Collection;
@ -28,7 +28,7 @@ import java.util.Collection;
* *
* @author AuroraLS3 * @author AuroraLS3
*/ */
public class ServerShutdownTransaction extends Transaction { public class ServerShutdownTransaction extends ThrowawayTransaction {
private final Collection<FinishedSession> unsavedSessions; private final Collection<FinishedSession> unsavedSessions;