mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-29 04:57:48 +01:00
we don't need that after all
This commit is contained in:
@@ -39,7 +39,6 @@ public class DirectoryConflictResolver implements ConflictResolver {
|
||||
|
||||
var oursAsDir = (JObject<Directory>) ours;
|
||||
oursAsDir.runWriteLockedMeta((a, b, c) -> {
|
||||
// FIXME:
|
||||
if (!ours.tryLocalResolve())
|
||||
throw new NotImplementedException("Conflict but we don't have local copy for " + ours.getName());
|
||||
|
||||
|
||||
@@ -45,13 +45,11 @@ public class FileConflictResolver implements ConflictResolver {
|
||||
.orElseThrow(() -> new NotImplementedException("Could not find parent directory for file " + oursAsFile.getName()));
|
||||
|
||||
_oursDir.runWriteLockedMeta((a, b, c) -> {
|
||||
// FIXME:
|
||||
if (!_oursDir.tryLocalResolve())
|
||||
throw new NotImplementedException("Conflict but we don't have local copy for " + _oursDir.getName());
|
||||
|
||||
_oursDir.runWriteLocked((mD, oursDir, bumpDir) -> {
|
||||
oursAsFile.runWriteLockedMeta((a2, b2, c2) -> {
|
||||
// FIXME:
|
||||
if (!ours.tryLocalResolve())
|
||||
throw new NotImplementedException("Conflict but we don't have local copy for " + ours.getName());
|
||||
|
||||
|
||||
@@ -65,7 +65,8 @@ public class JObjectResolver {
|
||||
public void notifyWrite(JObject<?> self) {
|
||||
self.assertRWLock();
|
||||
jObjectWriteback.markDirty(self.getName(), self);
|
||||
invalidationQueueService.pushInvalidationToAll(self.getName());
|
||||
if (self.isResolved())
|
||||
invalidationQueueService.pushInvalidationToAll(self.getName());
|
||||
}
|
||||
|
||||
public void bumpVersionSelf(JObject<?> self) {
|
||||
|
||||
Reference in New Issue
Block a user