mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
Server: don't forget to really flush getInitialObjSyncDone reset
This commit is contained in:
@@ -73,7 +73,7 @@ public class PersistentPeerDataService {
|
||||
_selfUuid = _persistentData.runReadLocked(PersistentRemoteHostsData::getSelfUuid);
|
||||
|
||||
if (_persistentData.runReadLocked(d -> d.getSelfCertificate() == null)) {
|
||||
jObjectTxManager.executeTx(() -> {
|
||||
jObjectTxManager.executeTxAndFlush(() -> {
|
||||
_persistentData.runWriteLocked(d -> {
|
||||
try {
|
||||
Log.info("Generating a key pair, please wait");
|
||||
@@ -97,7 +97,7 @@ public class PersistentPeerDataService {
|
||||
|
||||
if (!shutdownChecker.lastShutdownClean()) {
|
||||
_persistentData.getData().getIrregularShutdownCounter().addAndGet(1);
|
||||
jObjectTxManager.executeTx(() -> {
|
||||
jObjectTxManager.executeTxAndFlush(() -> {
|
||||
peerDirectoryLocal.get().rwLock();
|
||||
peerDirectoryLocal.get().tryResolve(JObjectManager.ResolutionStrategy.LOCAL_ONLY);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user