Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Neo4jsource
Commits
a1d2cbdd
Commit
a1d2cbdd
authored
7 years ago
by
MishaDemianenko
Browse files
Options
Download
Email Patches
Plain Diff
Synchronize start and stop of services that restarted on master/slave
switch.
parent
34ba760d
4.4
3.5
4.0
4.1
4.2
4.2-pipelined
4.3
5.0
5.1
5.2
akollegger-patch-1
issue-management-update
revert-12892-feature/upd
5.2.0
5.1.0
5.0.0
4.4.14
4.4.13
4.4.12
4.4.11
4.4.10
4.4.9
4.4.8
4.4.7
4.4.6
4.4.5
4.4.4
4.4.3
4.4.2
4.4.1
4.4.0
4.4.0-alpha01
4.3.21
4.3.20
4.3.19
4.3.18
4.3.17
4.3.16
4.3.15
4.3.14
4.3.13
4.3.12
4.3.11
4.3.10
4.3.9
4.3.8
4.3.7
4.3.6
4.3.5
4.3.4
4.3.3
4.3.2
4.3.1
4.3.0
4.2.19
4.2.18
4.2.17
4.2.16
4.2.15
4.2.14
4.2.13
4.2.12
4.2.11
4.2.10
4.2.9
4.2.8
4.2.7
4.2.6
4.2.5
4.2.4
4.2.3
4.2.2
4.2.1
4.2.0
4.1.12
4.1.11
4.1.10
4.1.9
4.1.8
4.1.7
4.1.6
4.1.5
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.1.0-alpha01
4.0.12
4.0.11
4.0.10
4.0.9
4.0.8
4.0.7
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
4.0.0-rc01
4.0.0-beta03mr03
4.0.0-beta02
4.0.0-beta01
4.0.0-alpha10
4.0.0-alpha09mr02
4.0.0-alpha08
4.0.0-alpha07mr01
4.0.0-alpha06
4.0.0-alpha05
4.0.0-alpha04
4.0.0-alpha03
4.0.0-alpha02
4.0.0-alpha01
3.5.35
3.5.34
3.5.33
3.5.32
3.5.31
3.5.30
3.5.29
3.5.28
3.5.27
3.5.26
3.5.25
3.5.24
3.5.23
3.5.22
3.5.21
3.5.20
3.5.19
3.5.18
3.5.17
3.5.16
3.5.15
3.5.14
3.5.13
3.5.12
3.5.11
3.5.9
3.5.8
3.5.7
3.5.6
3.5.5
3.5.4
3.5.3
3.5.2
3.5.1
3.5.0
3.5.0-rc01
3.5.0-beta03
3.5.0-beta02
3.5.0-beta01
3.5.0-alpha09
3.5.0-alpha08
3.5.0-alpha07
3.5.0-alpha06
3.5.0-alpha05
3.5.0-alpha04
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
community/kernel/src/main/java/org/neo4j/kernel/impl/util/watcher/DefaultFileSystemWatcherService.java
+2
-2
...el/impl/util/watcher/DefaultFileSystemWatcherService.java
community/kernel/src/main/java/org/neo4j/kernel/internal/locker/StoreLockerLifecycleAdapter.java
+2
-2
...j/kernel/internal/locker/StoreLockerLifecycleAdapter.java
enterprise/backup/src/main/java/org/neo4j/backup/OnlineBackupKernelExtension.java
+2
-2
...in/java/org/neo4j/backup/OnlineBackupKernelExtension.java
with
6 additions
and
6 deletions
+6
-6
community/kernel/src/main/java/org/neo4j/kernel/impl/util/watcher/DefaultFileSystemWatcherService.java
+
2
-
2
View file @
a1d2cbdd
...
...
@@ -51,7 +51,7 @@ public class DefaultFileSystemWatcherService implements FileSystemWatcherService
}
@Override
public
void
start
()
public
synchronized
void
start
()
{
assert
watcher
==
null
;
watcher
=
fileWatchers
.
newThread
(
eventWatcher
);
...
...
@@ -59,7 +59,7 @@ public class DefaultFileSystemWatcherService implements FileSystemWatcherService
}
@Override
public
void
stop
()
throws
Throwable
public
synchronized
void
stop
()
throws
Throwable
{
eventWatcher
.
stopWatching
();
if
(
watcher
!=
null
)
...
...
This diff is collapsed.
Click to expand it.
community/kernel/src/main/java/org/neo4j/kernel/internal/locker/StoreLockerLifecycleAdapter.java
+
2
-
2
View file @
a1d2cbdd
...
...
@@ -31,13 +31,13 @@ public class StoreLockerLifecycleAdapter extends LifecycleAdapter
}
@Override
public
void
start
()
public
synchronized
void
start
()
{
storeLocker
.
checkLock
();
}
@Override
public
void
stop
()
throws
Throwable
public
synchronized
void
stop
()
throws
Throwable
{
storeLocker
.
close
();
}
...
...
This diff is collapsed.
Click to expand it.
enterprise/backup/src/main/java/org/neo4j/backup/OnlineBackupKernelExtension.java
+
2
-
2
View file @
a1d2cbdd
...
...
@@ -112,7 +112,7 @@ public class OnlineBackupKernelExtension extends LifecycleAdapter
}
@Override
public
void
start
()
public
synchronized
void
start
()
{
if
(
config
.
get
(
OnlineBackupSettings
.
online_backup_enabled
)
)
{
...
...
@@ -148,7 +148,7 @@ public class OnlineBackupKernelExtension extends LifecycleAdapter
}
@Override
public
void
stop
()
throws
Throwable
public
synchronized
void
stop
()
throws
Throwable
{
if
(
server
!=
null
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help